Re: Problems with includes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Joseph wrote:
Ok, I have changed my php.ini and restarted apache.  My include_path is set
to

include_path = ".:/srv/www/html"

but when I try from /srv/www/html/library/index.php:
require '/Tools/dbtools/dbtool.php';
or
require 'Tools/dbtools/dbtool.php';
or
require '../Tools/dbtools/dbtool.php';

I get the error:
require(/Tools/dbtools/dbtool.php) [function.require]: failed to open
stream: No such file or directory /srv/www/html/lib/index.php, line 10

require() [function.require]: Failed opening required
'/Tools/dbtools/dbtool.php' (include_path='.:/srv/www/html')
/srv/www/html/lib/index.php, line 10

any thoughts?  Am I missing something obvious?
>
It deosn't look like it updated your path.  Output a phpinfo() and make sure
you have the correct php.ini.  web servers tend to have more than one laying
around.

According to phpinfo() I am working with the correct php.ini (/etc/php5/php.ini). And looking in the Configuration : PHP Core section "doc_root" is set to "/srv/www/html" and "include_path" is set to ".:/srv/www/html".

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux