RE: [PHP] include() problem...

From: Date: Thu, 20 Sep 2001 18:05:55 +0000
Subject: RE: [PHP] include() problem...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68033@lists.php.net to get a copy of this message
I've tried including just a file that was in the /usr/lib/php directory. No luck. I get exactly the same error (with the correct file name, obviously). Also, note in the error that include() is seeing include_path=''. What's up with that? -----Original Message----- From: Jeb Anderson Scarbrough [mailto:jebscarbrough@hotmail.com] Sent: Thursday, September 20, 2001 12:04 PM To: matt@mountaintopherbs.com Cc: php-general@lists.php.net Subject: RE: [PHP] include() problem... If you put the file into the include directory specified in the php.ini (.:/usr/lib/php) then I believe you should do: include("mysql.php"); NOT include("DB/mysql.php"); Someone please correct me if I'm wrong. I've got a very odd problem. I'm trying to include 'DB/mysql.php', from the /usr/lib/php directory, and it's not working. My include_path is set properly (.:/usr/lib/php) and when I do 'print_r(ini_get("include_path"));' it prints it properly. But when I try and do an include, I get the following error. Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='') in /usr/local/httpd/htdocs/test.php on line 2 Help? Please? I'm at a loss as to how to fix this, and I kind of need to. -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

« previous php.general (#68033) next »