Jump to content


Photo

PHP double include


  • Please log in to reply
2 replies to this topic

#1 strok

strok
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 May 2006 - 01:12 AM

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

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 21 May 2006 - 01:15 AM

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.
Legend has it that reading the manual never killed anyone.
My site

#3 strok

strok
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 May 2006 - 01:24 AM

[!--quoteo(post=375617:date=May 20 2006, 09:15 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ May 20 2006, 09:15 PM) View Post[/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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users