inspirational
| From: | jtjohnston | Date: | Sun, 26 May 2002 05:39:26 +0000 |
| Subject: | inspirational | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99284@lists.php.net to get a copy of this message | ||
I want to detect the url my .php lies in.
This is over kill and BS:
$myurlvar = "http://".$SERVER_NAME.parse($SCRIPT_NAME);
How do I get "http://foo.com/dir1/dir2/dir3/".
There seems to be nothing in phpinfo() that will give me a full url to
play with.
Flame me if you will, but I browsed TFM and found nothing inspirational.
Looked at phpinfo() too and got discouraged.
I need a full url.
John