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
--
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]