Re: about include

From: Date: Thu, 01 Mar 2001 10:40:04 +0000
Subject: Re: about include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42133@lists.php.net to get a copy of this message
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 marcos@ival.es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
___________________ Felipe Fernández Perera EPSILON ERIDANI http://www.epsilon-eridani.com mailto:felipe@epsilon-eridani.com

« previous php.general (#42133) next »