Hi, Marcos

You can try something like this:

///// web root
$SiteRootDir = "/home/httpd/mydomain";

///// phorum directory
$PhorumDir = "/phorum";

///// libraries
include $SiteRootDir.$PhorumDir."/common.php";
....

Felipe


At 08:59 1/03/01 +0000, Marcos 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";
>
>     in php.ini i have this:
>
>         include_path    =
>"/usr/local/apache/htdocs:/home/httpd/mydomain"
>         doc_root                =
>         user_dir                =
>/usr/local/apache/htdocs                                     ;
>         extension_dir   =       ./
>         enable_dl               = On
>
>     after this, where should i put all my php files? can i put admin php
>files into other directories?
>
>any suggestions will be appreciated,
>
>thanks in advance,
>
>
>marcos lloret
>[EMAIL PROTECTED]
>
>
>
>--
>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]

___________________
Felipe Fernández Perera
EPSILON ERIDANI
http://www.epsilon-eridani.com
mailto:[EMAIL PROTECTED]


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