Reply to Error - Cannot pass paramter --> Failed to open stream

Your name:

Reply:


Posted by One on 11/11/69 11:59

I have a main.php file that calls a php navigation menu.

I want to pass the menu file a parameter to tell it which menu to
display.

Inside the main.php I have :
include "/home/ottadca1/public_html/includes/leftnav.php?menuid=dave";

But the error is :
Warning:
main(/home/ottadca1/public_html/includes/leftnav.php?menuid=dave)
[function.main]: failed to open stream: No such file or directory in
/home/ottadca1/public_html/1menu.php on line 117

Warning: main() [function.include]: Failed opening
'/home/ottadca1/public_html/includes/leftnav.php?menuid=dave' for
inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/ottadca1/public_html/1menu.php on line 117

However - if use the exact same line without passing a parameter it
works fine.
This works : include "/home/ottadca1/public_html/includes/leftnav.php";

I don't understand. I've used this technique in the past.
Is there some sort of php configuration I am missing ???

THANKS!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация