On 10/5/06, Deckard <ml@xxxxxxxxxxx> wrote:
config.inc.php is in /var/www/html and the file that calls it is in /var/www/html/classes
Hi Deckard, You've said that the file that is trying to perform the include is located in /var/www/html/classes, right? Which suggests to me that *that* file is probably included from another file, likely located elsewhere... Rather than including via a relative '../' path, try an absolute path. You can hard-code it at first (include_once('/var/www/html/config.inc.php');), but then if it works switch to a method like so: [code] // Consider *where* you create this // Define it as a constant if you'd like... define('BASE_PATH', dirname(__FILE__)); // Now build the path, like (assuming it was created // in a file located at /var/www/html include_once(BASE_PATH . '/config.inc.php'); [/code] HTH, John W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php