ini_set('include_path') and require_once()
| From: | BigSmoke | Date: | Thu, 26 Aug 2004 11:56:27 +0000 |
| Subject: | ini_set('include_path') and require_once() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-194768@lists.php.net to get a copy of this message | ||
Hi,
In the following code, require_once() borks, complaining:
"Failed opening required 'includes/companies.php' (include_path='.:..')"
"""
ini_set("include_path", "../../php");
require_once('includes/common.php');
require_once('includes/validate.php');
require_once('includes/company.php');
require_once('includes/companies.php');
"""
The strange thing is: I have other code where this same method _does_
appear to work. Anyone care to enlighten me?
I'm using PHP 4.3.8.
BigSmoke
Smokes your problems, coughs fresh air
PS: I was not sure in which newsgroups to (cross-)post this.
I thought, it might be better fit for php.version4, but, since
I wasn't sure, I decided on php.general.