Re: about include

From: Date: Thu, 01 Mar 2001 09:46:09 +0000
Subject: Re: about include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42141@lists.php.net to get a copy of this message
On Thursday 01 March 2001 09:59, you wrote: > hi, > everytime i add include function to a script it will answer like: > Warning: Failed opening 'common.php' for inclusion > (include_path='/usr/local/apache/htdocs:/home/httpd/mydomain') in > /home/httpd/mydomain/h24h/foro/admin/index.php on line 23 > > and lines 22 and 25 have: > chdir("/home/httpd/mydomain/phorum/"); > include "common.php"; The chdir doesn't affect include () in any way. It looks for "common.php" in the include path, i.e. /usr/local/apache/htdocs/common.php or /home/httpd/mydomain/common.php Writing include ('phorum/common.php') will work in your setup -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler

« previous php.general (#42141) next »