Andrew Judge wrote:
Warning: main(): Failed opening '' for inclusion
(include_path='.:/usr/lib/php') in /Library/WebServer/html/services.php
on line 65

line 65 if the $page variable as below
<snip>
<? include "$page"; ?>
<snip>
The page is called with an href page.php?page=content.php
with the content.php page in the web root (both pages are in the web
root).

I'd put money on you having register_globals off - which is good. Replace your include with...


<? include $_GET['page']; ?>

and it should work. Also, please look into the security implications of what you are doing here. I'd also put money on this being a massive great hole in your servers security.

--
Stuart

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to