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
Apache's .htaccess allows a wide range of useful web server behaviours to be implemented, the most popular of which are provision of custom error pages, and password protection of directories. This tutorial gives a brief lesson in how to implement these two useful types of service.
In HTML the " character is encountered very often. This is also used within PHP therefore this causes a very small problem when outputting HTML code. This however is a very simple solution to that problem.