On Wed, October 4, 2006 7:32 pm, Deckard wrote:
> I have this line of code:
> include_once('../config.inc.php');

DON'T DO THAT!

Sooner or later, you're gonna need to move/copy this file somewhere
else, and ../ ain't gonna be right.

> Warning: main(): Failed opening '../config.inc' for inclusion
> (include_path='.:/usr/share/pear') in

Here is your ANSWER.

*CHANGE* your include_path to have:
/var/www/html
in it.


All that said, also make sure the file is readable to PHP, as it
should have "worked" I think...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to