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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to