LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 15
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
 
Old 06-02-2004, 06:20 PM   #2
ac1980
Member
 
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 '/')
 
  


Reply


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


All times are GMT -5. The time now is 03:36 PM.

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