faqts : Computers : Programming : Languages : PHP : Common Problems : Errors

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

50 of 123 people (41%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

Warning: Failed opening ... .inc for inclusion in ... php3 on line __

Sep 2nd, 2000 17:22
D Webber, Michael Grant, Henrik Hansen, Bill Konz, http://hyppo.screwdriver.net/show.phtml?id=139049


If you are running a unix based system be sure that the user running the
webserver can read the file. to be sure do a chmod a+r on the file.
Are you sure you have the right path to the file, if the .inc file isent
in the same dir as the php file, you have to add a path. fx:
include("/bla/blabla/functions.inc");
--------
And make sure execute permission (chmod a+x) is enabled on directories. 
For example, if you're trying to include the above, make sure execute
permission is enabled for /bla and /bla/blabla directories.
-------
If *ALL* php pages are failing with "failed opening..." messages and 
you're using the Zend optimizer, make sure the optimizer library file 
and directories are readable (/usr/local/Zend/lib by default on Unix)