Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php')

From: Date: Wed, 18 Feb 2004 14:21:53 +0000
Subject: Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php')
Groups: php.general 
Request: Send a blank email to php-general+get-178103@lists.php.net to get a copy of this message
I have an os X 10.3 server with a page that gives me this error. I have the same site on a red hat machine that does not give me this error. The way the page is: 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 <? include "header.inc"; include "functions.php"; ?> <html> text <? include "$page"; ?> </html> <? include "footer.inc"; ?> 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). The header, functions and footer are all okay, the content.php is where the error is. Does anyone know from the info above what is causing this? Any help appreciated. Best regards, Andrew Judge

« previous php.general (#178103) next »