Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT'] [SOLVED]

2005-02-21 Thread Dave
Thank you all for your responses. The problem is now half solved. In the majority of cases, using a period before the directory path ( i.e. ./directory ) will give me the correct path to the directory I specify from the relative path from the web root. However, it still will not work with

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread b1nary Developement Team
Okay, for that last possibility, the one that you used the document root variable. You have to add your domain name before, the reason being is because it's relative to where the script is, if you add the domain name (http://www.whatever.org/document/root) then it switches from relative to abs

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread John Nichel
Dave wrote: Here is some test code echo ""; echo ""; echo ""; ?>: Theoretically, they should all output the same image. However: ->IMAGE DISPLAYS ->IMAGE DISPLAYS IMAGE DOES NOT DISPLAY This is the expected result. $_SERVER['DOCUMENT_ROOT'] is just that. The path from root of the _filesyste

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Dave
Andre, Mirco, BDT, Thank you for your responses. Here is some test code "; echo ""; echo ""; ?>: Theoretically, they should all output the same image. However: ->IMAGE DISPLAYS ->IMAGE DISPLAYS IMAGE DOES NOT DISPLAY Of course, the first instance only works if the script is in the correct plac

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Andre Dubuc
On Sunday 20 February 2005 12:15 pm, Dave wrote: > PHP General, > > The Situation: > I would like to be able to specify locations of scripts and files > relative to the "root" directory from which my web site is served. I > thought this was what $_SERVER['DOCUMENT_ROOT'] was for. > > Th

Re: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread b1nary Developement Team
What's Up Dave... yeah, regardless of how deep this goes into the servers file structure, it should pull out the same thing in the end. Please print out the response and let us know what happens. Dave wrote: PHP General, The Situation: I would like to be able to specify locations of scrip

AW: [PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Mirco Blitz
] Confused about usage of $_SERVER['DOCUMENT_ROOT'] PHP General, The Situation: I would like to be able to specify locations of scripts and files relative to the "root" directory from which my web site is served. I thought this was what $_SERVER['DOCUMENT_ROOT&#x

[PHP] [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT']

2005-02-20 Thread Dave
PHP General, The Situation: I would like to be able to specify locations of scripts and files relative to the "root" directory from which my web site is served. I thought this was what $_SERVER['DOCUMENT_ROOT'] was for. The Problem: When I use $_SERVER['DOCUMENT_ROOT'], it creates a