[PHP] Get Entire URL for Current Page
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.php _ Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Get Entire URL for Current Page
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.php print_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
Re: [PHP] Get Entire URL for Current Page
print $_SERVER['REQUEST_URI']; -- Maxim Maletsky [EMAIL PROTECTED] Phillip Erskine [EMAIL PROTECTED] 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.php _ Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Get Entire URL for Current Page
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.php print_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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Get Entire URL for Current Page
On Wednesday 06 November 2002 01:54, Phillip Erskine wrote: 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? Basically if you don't see it when you do print_r($_SERVER) then you can't have it -- it's not there, there's nothing you can do about it. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Davis's Dictum: Problems that go away by themselves, come back by themselves. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php