note 84119 deleted from function.parse-url by cmb
| From: | cmb@php.net | Date: | Sun, 19 Jan 2020 08:31:23 +0000 |
| Subject: | note 84119 deleted from function.parse-url by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213904@lists.php.net to get a copy of this message | ||
Note Submitter: andrewtheartist at hotmail dot com
----
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']);