Posted by One on 12/16/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!
Navigation:
[Reply to this message]
|