RE: [PHP] include() problem...
| From: | Jeb Anderson Scarbrough | Date: | Thu, 20 Sep 2001 18:03:39 +0000 |
| Subject: | RE: [PHP] include() problem... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68032@lists.php.net to get a copy of this message | ||
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