strok Posted May 21, 2006 Share Posted May 21, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/10093-php-double-include/ Share on other sites More sharing options...
AndyB Posted May 21, 2006 Share Posted May 21, 2006 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 Link to comment https://forums.phpfreaks.com/topic/10093-php-double-include/#findComment-37540 Share on other sites More sharing options...
strok Posted May 21, 2006 Author Share Posted May 21, 2006 [!--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! Quote Link to comment https://forums.phpfreaks.com/topic/10093-php-double-include/#findComment-37541 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.