Re: Get Entire URL for Current Page
| From: | Phillip Erskine | Date: | Tue, 05 Nov 2002 17:54:36 +0000 |
| Subject: | Re: Get Entire URL for Current Page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-122812@lists.php.net to get a copy of this message | ||
With "print_r($_SERVER);" I can get the server name and script path, but how do you detect if username and password are in the url as in the example below?
On Wednesday 06 November 2002 01:32, Phillip Erskine wrote:
Is it possible to get the entire url of the current page? I am particularly interested in getting the "username:password" part. http://username:password@www.mysite.com/path/to/file.phpprint_r($_SERVER); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Your lover will never wish to leave you. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _________________________________________________________________ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp