Re: Problems with includes
| From: | Tyson Vanover | Date: | Fri, 16 May 2008 20:49:43 +0000 |
| Subject: | Re: Problems with includes | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274454@lists.php.net to get a copy of this message | ||
Dan Joseph wrote:
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".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.