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
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
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
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
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
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
] 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
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
8 matches
Mail list logo