note 84119 added to function.parse-url
| From: | andrewtheartist at hotmail dot com | Date: | Sun, 29 Jun 2008 00:28:58 +0000 |
| Subject: | note 84119 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140904@lists.php.net to get a copy of this message | ||
Here's the easiest way to get the URL to the path that your script is in (so not the actual
script name itself, just the complete URL to the folder it's in)
echo "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
----
Server IP: 208.69.120.35
Probable Submitter: 24.74.90.111
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit -- https://master.php.net/note/edit/84119
Del: integrated -- https://master.php.net/note/delete/84119/integrated
Del: useless -- https://master.php.net/note/delete/84119/useless
Del: bad code -- https://master.php.net/note/delete/84119/bad+code
Del: spam -- https://master.php.net/note/delete/84119/spam
Del: non-english -- https://master.php.net/note/delete/84119/non-english
Del: in docs -- https://master.php.net/note/delete/84119/in+docs
Del: other reasons-- https://master.php.net/note/delete/84119
Reject -- https://master.php.net/note/reject/84119
Search -- https://master.php.net/manage/user-notes.php