Hi
Is there a php function like include() that puts the contents in a variable? Like $generatedpage = include('index.php?id=22');
Hope you get the idea.
[man]file_get_contents[/man]
Wonderfull.. thanx.
Update: Tested it, but it doesn't seem to compile the php code in the file before giving me the resault. That is what I want it to do. I get all the code back including php as it is now.
use fopen to open the url and read the content by using fread regards, nikolas
file_get_contents would probably work, if you put url as an argument i. e. http://yourhost.com/index.php?id=20 instead of index.php?id=20