Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

help i can include post/display.php but not this : Warning: include(post/display.php?page=home) [function.include]: failed to open stream: No such file or directory in /home/a******/public_html/try.php on line 3

OpenStudy (farmdawgnation):

I see two problems here that need to be addressed. 1. You need quotes around that include string. So, it should be: include('filenamehere'); 2. When you're including things in PHP, it isn't accessing a URL - it's reading a file. So adding the "?page=home" onto the end of it doesn't work like you'd expect. You'll need to include post/display.php and figure out some other way to pass in the page identifier. Hope this helps!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!