LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php question (https://www.linuxquestions.org/questions/linux-software-2/php-question-188899/)

thar 06-02-2004 12:56 PM

php question
 
Hi!

I have the following problem. Let's say i'm includig "/phpBB2/index.php" in my php script.
This script lies in /mysite/

Now, how can I change the root directory?(you know phpbb include paths are relative)?
For example it tries to include "./whatever.php" but it's searching it in /mysite/. pleas help. Thanx

ac1980 06-02-2004 06:20 PM

If you have root access, set the include_path option in php.ini. However I think a path starting by / will be handled as absolute (not sure if from site root or actual host '/')


All times are GMT -5. The time now is 09:05 AM.