Jump to content

Archived

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

strok

PHP double include

Recommended Posts

in page1.php i used a script: <? virtual("/page2.html");?>
in page2.html i used a script: <? virtual("/folder/page3.php");?>

Problem: the page3.php not loading into page1.php (/page1.php and /page2.html are in root dir)

Thanks

Share this post


Link to post
Share on other sites
Are page2.html and page3.php in the same folder? If so, the second include ought to have no leading slash as the file to be included is 'local' to the file that's including it.

Share this post


Link to post
Share on other sites
[!--quoteo(post=375617:date=May 20 2006, 09:15 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ May 20 2006, 09:15 PM) [snapback]375617[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Are page2.html and page3.php in the same folder? If so, the second include ought to have no leading slash as the file to be included is 'local' to the file that's including it.
[/quote]
sorry, i just edited the post!

Share this post


Link to post
Share on other sites

×

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.