Jump to content

Load another page inside of 1


JBud

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.