JBud Posted December 29, 2009 Share Posted December 29, 2009 Hey guys, I'm trying a thing out where I have one main page (index.php) with a menubar in it and banner/login on the top, and in the middle is another page thats currently viewed (loaded like index.php?page=main.php).Currently I'm doing this by <? $fp = fopen($webpage, "r") or die("<p>Cannot load page $webpage</p>"); while (!feof($fp)) { print fgets($fp, 1024); } ?> The only problem with this is that I can't use any php scripts on the loaded page, only client side scripts. Is there another way around this? Or is there any other server side scripts I can use that will work? Thanks =] www.polarisplace.com/Beta <-- can view here Link to comment https://forums.phpfreaks.com/topic/186613-load-another-page-inside-of-1/ Share on other sites More sharing options...
rajivgonsalves Posted December 29, 2009 Share Posted December 29, 2009 you should include the page instead of opening it with fopen http://php.net/manual/en/function.include.php Link to comment https://forums.phpfreaks.com/topic/186613-load-another-page-inside-of-1/#findComment-985601 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.