|
Hits: 5
How to Find the Current URL with PHP
 0.0
The full URL to a page comes in three parts: The domain name, the path to the file then the filename, and the query string. For example, take the URL http://www.example.com/ex ample/page.php?name=Bob:
1. The domain name: www.example.com; 2. The path to the page: /example/page.php; 3. The query string: name=Bob
So how do you find it all out in your own PHP scripts?
This guide will tell you how access each of these elements by using the $_SERVER superglobal array which is available at all times within your PHP scripts.
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
Date: Dec, 10 2006
Author: Sven Vdhrison, http://discomoose.org/2005/11/02/how-to-find-the-current-url-with-php/
License
| License Type: Other Free / Open Source License |
| |
price: Free |
| License Type: Commercial License |
| |
price: 19.95$
|
Ratings
|
Number of Ratings: 0 Votes
|
Others Scripts
Software/Business/Databases & Tools
Java/Tips and Tutorials/General Java/Introduction to Java
Software/Business/Office Suites & Tools
ASP/Tips and Tutorials/Introduction to ASP
Software/Business/Office Suites & Tools
ASP/Tips and Tutorials/Introduction to ASP
PHP/Tips and Tutorials/Image Manipulation
Software/Software Development/Development/Delphi
PHP/Tips and Tutorials/Image Manipulation
Software/Web Development/Site Administration
PHP/Tips and Tutorials/Calendars
Software/Software Development/Development/Delphi
PHP/Tips and Tutorials/Form Processing
Software/System Utilities/Development Tools/Other
PHP/Tips and Tutorials/Installing PHP
Software/Games & Entertainment/Games/Other
Software/Games & Entertainment/Games/Other
PHP/Tips and Tutorials/Image Manipulation
Software/Games & Entertainment/Adventure & Roleplay
Java/Applications/Calculators
Software/Games & Entertainment/Action
PHP/Tips and Tutorials/Miscellaneous
Software/Games & Entertainment/Arcade
|