Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
11-22-2006, 05:53 PM #1
Inserting HTML from an external source?
I envisage something simple in mypage.html like:
Clearly it could not be *exactly* like the PHP readfile function or this would create an obvious security risk! I imagine it to be a function which will attempt only to read from qualified sources (i.e. webservers, ftp servers, etc), which are authorised to publish data.
Last edited by mlse; 11-22-2006 at 06:27 PM.Die Welt ist ein Irrenhaus und hier ist die Zentrale!
11-22-2006, 06:05 PM #2
- Join Date
- Jun 2002
- Between DC and Baltimore In a Cave
- Thanked 94 Times in 88 Posts
Only way would be to have your serverside page write the data onto the page since it is from a different domain.
11-22-2006, 06:23 PM #3
11-22-2006, 06:44 PM #4
- Join Date
- Oct 2006
- Denver, Colorado USA
- Thanked 302 Times in 294 Posts
Here are a couple of related links -
http://www.xml.com/pub/a/2005/11/09/...d-harmful.htmlIf you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
11-23-2006, 10:43 AM #5
Ok, thanks for the links, I understand now!Die Welt ist ein Irrenhaus und hier ist die Zentrale!