Click to See Complete Forum and Search --> : include_path


Anon
11-16-2000, 04:17 PM
I have installed PHP 4.03pl1 as an apache module on Windows 98. Everything is working fine, except when I try and include files. It says: "Warning: Failed opening of 'filename.php' for inclusion...

I have got the include_path variable set to the following:

include_path = ".;C:\Program Files\Apache Group\Apache\htdocs"

Apache is installed in C:\Program Files\Apache Group\Apache and PHP in C:\php

Please help, as I can't think what the problem can be.

TIA,
Peter.

Anon
11-20-2000, 10:00 AM
Hmm..

I'm using NT4 as webserver with PHP and IIS and at home I'm using Win98 with Apache for testing.

If I include a file I usually use this:
(if it's one directory deeper)
"include/include.inc"
or:
(if it's one directory back)
"../include.inc" or "../include/include.inc"

I never use include_path nor do I never supply the whole path. It's working perfectly however this way...

tonyfj
07-26-2002, 02:41 PM
Arrg... I've a same problem on NT .
I have installed PHP 4.1.2 as an apache module on NT. Everything is working fine, except when I try and include files. It says: "Warning: Failed opening of 'index.php' for inclusion...
Please.. help me!