Re: Re: Really strange / TYPO
| From: | John Wells | Date: | Thu, 05 Oct 2006 07:34:03 +0000 |
| Subject: | Re: Re: Really strange / TYPO | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242638@lists.php.net to get a copy of this message | ||
On 10/5/06, Deckard <ml@wordlife.eu> wrote:
config.inc.php is in /var/www/html and the file that calls it is in /var/www/html/classesHi 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