Web Hosting ArticlesArticles, tips and news on web hosting, including dedicated servers, colocation and virtual hostingHow to Find the Current URL with PHP- November 2, 2005 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.comexamplepage.phpname=Bob. The three parts of this are:1. The domain name: www.example.com2. The path to the page: examplepage.php3. The query string: name=BobSo how do you find it all out with your own PHP scriptshttp://whn.vdhri.net/2005/11/how_to_find_the_current_url_with_php.html Find a visitor's IP Address with PHP- November 1, 2005 Do you want to know the IP address of a visitor This can be useful for many reasons, such as tracking site usage or blocking access to specific people. Here's how you can find it using PHP.http://whn.vdhri.net/2005/11/find_a_visitors_ip_address_with_php.html |