Web Hosting Talk







View Full Version : Problem with "Failed opening 'file.php' for inclusion (include_path = ...) "


afriq
05-30-2001, 01:46 AM
The default RaQ PHP include_path is set to /usr/lib/php, but there is no directory like that on the server.

Could this be the reason for me getting "Failed opening 'file.php' for inclusion (include_path='.:/usr/lib/php') in ..." messages when trying to browse .php files?

Should the include_path be set to /usr/local/include/php? If not, to what should it be set?

Thanks,

Johan

huck
05-30-2001, 08:59 AM
The correct path differs on everybox, but mine is:
/usr/local/include/php

You may want to change the inlclude path or simple link the current path to the one above.

mlovick
06-04-2001, 09:59 AM
How about specifying the full path to the file within the script:

<? inlude "/home/sites/site#/web/file.php" ?>

mlovick
06-04-2001, 10:08 AM
forgot the semi-colon

<? inlude "/home/sites/site#/web/file.php"; ?>

Attention to detail

:D