Re: require_once '../config.php'; doesn't work?
| From: | Jason Giangrande | Date: | Sat, 10 Apr 2004 02:53:03 +0000 |
| Subject: | Re: require_once '../config.php'; doesn't work? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183048@lists.php.net to get a copy of this message | ||
Mike Zornek wrote:
Is it true I can't include a file up a dir like this: require_once '../config.php';You should be able to include a file up one (or more) directories. Are you sure it's only up one directory from were your script is being called from?
This seems to work though: require_once 'settings/db.php'; Strange.-- Jason Giangrande <jason@giangrande.org> http://www.giangrande.org http://www.dogsiview.com