The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

'include not found

my include

PHP Code:

'db.inc.php'

is not being accessed. the apache error log tells me:
"PHP Warning: include(db.inc.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\xxxxxx\\xxxxxx.php on line 11"
I don't understand why it appears to be looking for the include file in the page i'm calling it from rather than the directory holding all my php files.
and:
"PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'db.inc.php' for inclusion (include_path='.;C:\\php5\\pear') in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\xxxxxx\\xxxxxx.php on line 11

I reckon it must be a setup problem in my ini file because this never happened before with my previous setup.

config is now pointing to c:\php\includes. makes no difference. have searched ini file for any reference to pear path without success. if i shift my include file from my site root then what would i do once i put the site onto my host? still don't undersdtand why this worked on my other pc Just checked the config on my other pc and the include_path isn't even de-commented. very odd.

If that is a pear package you will also need the directory where your pear files were downloaded to in your environmental path. As per ernies post, you should already have php in your path. You will need to follow the above advice and add the pear binaries path.

Computers and Fire ...
In the hands of the inexperienced or uneducated,
the results can be disastrous.
While the professional can tame, master even conquer.