Re: [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT'] [SOLVED]
| From: | Dave | Date: | Mon, 21 Feb 2005 09:15:02 +0000 |
| Subject: | Re: [NEWBIE] Confused about usage of $_SERVER['DOCUMENT_ROOT'] [SOLVED] | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209111@lists.php.net to get a copy of this message | ||
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 the random_image function I created when called from within the web forum I'm using, which is the PHP based "Simple Machines Forum".
I will take this inquiry to their support forum to see if there is any special considerations about their PHP that I should know about.
Thank you all for your time and explanations. I have learned a lot about the DOCUMENT_ROOT variable.
--
Dave Gutteridge
dave@tokyocomedy.com