Re: script location
| From: | Ben Ramsey | Date: | Fri, 04 Jun 2004 15:10:18 +0000 |
| Subject: | Re: script location | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187643@lists.php.net to get a copy of this message | ||
Well, then... let me win the whole battle for you:
$path = $_SERVER['REQUEST_URI'];
$path = dirname($path);
echo $path;
You can use REQUEST_URI, SCRIPT_NAME, or PHP_SELF.
Now you know, and knowing is . . . ;-)
John W. Holmes wrote:
From: "Gabe" <ydnahg-news4432@mailblocks.com>-- Regards, Ben Ramsey http://benramsey.com --------------------------------------------------- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. ---------------------------------------------------Knowing the functions is half the battle. :-)GI JOE!!! ---John Holmes http://www.ebaumsworld.com/gijoe.html