To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-13-2002, 03:48 PM   #1
donnierivera
Member
 
Join Date: Jul 2001
Posts: 66
$document_root

What do I have to configure to get $DOCUMENT_ROOT or $_SERVER["DOCUMENT_ROOT"] to work on UNIX. $_SERVER["DOCUMENT_ROOT"] works on my devel box, but not the prod UNIX box.. I have set to:

include_path = ".:/php/includes:/docnet/web;."

But it doesn't seem to have an effect. I am so lost?
donnierivera is offline   Reply With Quote
Old 09-13-2002, 08:03 PM   #2
bealers
Member
 
bealers's Avatar
 
Join Date: Aug 2002
Location: Worcestershire/UK
Posts: 37
My understanding is that DOCUMENT_ROOT is a webserver Variable and has nothing to do with PHP

if I'm on a machine running apache and in the VirtualHost container the DocumentRoot is set to /home/foo then i'd expect DOCUMENT_ROOT to display that..hove you tried $_ENV just in case?
bealers is offline   Reply With Quote
Old 09-14-2002, 10:16 AM   #3
donnierivera
Member
 
Join Date: Jul 2001
Posts: 66
path

Forgot I put it in two places: GOT IT! 1) Need to add my root dir to php.ini include_path =".:/php/includes:/docnet/web;." 2) Which took me forever to figure out? When calling $DOCUMENT_ROOT in a function. You must make it global. hmm... Don't quit understand since it is a system variable, but I guess it makes since because I called it in a function. Hope this helps someone from lack documentation (at least I couldn’t find any other than forum questions and responses) on $DOCUMENT_ROOT and how to set the value…
donnierivera is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -4. The time now is 02:11 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.