PDA

View Full Version : include_path problems


Dirtgod
09-17-2002, 09:30 PM
Hello

I am really new to PHP and mysql but this is what i'm running on my server. OS is winnt and I have every thing installed on F:\ here and nothing is on my C:\ drive.

I get this error:

Fatal error: Failed opening required '/include/config.inc.php' (include_path='.;c:\php4\pear')

Can anyone please help me please. Is there an easy way to fix this. I do not have a php4 or a pear anything on the server.

Please help

Dirtgod
www.dirtgod.com (http://www.dirtgod.com)

craigh@mac.com
09-17-2002, 11:48 PM
well, there is a configuration on your server that says to look in that c: directory for the file you are trying to include. The config file can set several "default" directories to look. But, almost always, one of those defaults is to look in the directory you are currently in... so - look at the include command you are trying and see where you think it is directing to: it looks like it is looking for an '/include/ directory. You could try putting the included file in the same directory as the 'parent' file, then modify the command to just be the file name. Or... you could create the directory that it is looking for. good luck.

Dirtgod
09-19-2002, 04:32 AM
Thank you for your time on this i do need help thats for sure.. Like you said it does look like it's looking for an include here. If i'm on a page in a folder and there is a include folder in the same folder thats i'm working the right link would be /include/file name.php. But if i'm trying to get to a folder back one it would be ../include/filename.php.. Is this right?
To back up 1 folder it's ../

Thanks craigh
:)

craigh@mac.com
09-19-2002, 11:09 AM
yes,
./ is current directory
../ is parent directory