Re: ini_set('include_path') and require_once()
| From: | John Nichel | Date: | Thu, 26 Aug 2004 14:46:42 +0000 |
| Subject: | Re: ini_set('include_path') and require_once() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194800@lists.php.net to get a copy of this message | ||
BigSmoke wrote:
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'); """Try setting it to the full path. ini_set ( "include_path", "/path/from/root/php" ); -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com