RE: [PHP] ini_set('include_path') and require_once()

From: Date: Thu, 26 Aug 2004 13:07:35 +0000
Subject: RE: [PHP] ini_set('include_path') and require_once()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14309@lists.php.net to get a copy of this message
I hope that it is your real code, if so... I can only say that there is no such file (or its name on the disk has caps - if you're using *nix) or it resides in wrong location. Otherwise that seems to be very odd that 3 require_once statements before go well. Best regards, Denis Gerasimov Outsourcing Services Manager, VEKOS, Ltd. www.vekos.ru -----Original Message----- From: BigSmoke [mailto:bigsmoke@nodiscipline.net] Sent: Thursday, August 26, 2004 3:56 PM To: php-general@lists.php.net Subject: [PHP] ini_set('include_path') and require_once() 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.general (#14309) next »