Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-02-2004, 12:56 PM   #1
LQ Newbie
Registered: Oct 2003
Location: warsaw
Distribution: Own ;)
Posts: 22

Rep: Reputation: 15
php question


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
Old 06-02-2004, 06:20 PM   #2
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
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 '/')


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Question Hockeyfan Programming 5 09-13-2004 06:33 AM
PHP Question Hockeyfan Programming 3 08-01-2004 01:10 AM
PHP Question duerra Linux - Newbie 6 01-22-2004 06:37 PM
PHP question guild Programming 2 09-30-2003 09:31 PM
Another PHP question pkoebbe Debian 2 07-14-2003 07:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration