Session In PHP Another way to make data accessible on different pages of an entire Website is to use a PHP Session. A session creates a file in a temporary directory on the server where the session variables are registered and their values are stored. This data will be available to all pages on the site during the visit to that site.
There are two ways for the client to send information to Web Server: GET method POST method Before the browser sends the information, it encodes it using a schema called URL encoding. In this schema, the name / value pairs associated with the equal sign and the different pairs are separated by slashes & .
A constant is a name or an identifier for a single value. The value of the constant cannot be changed during script execution. By default, a constant is case sensitive. By convention, constant identifiers are always uppercase. Constant names begin with a letter or an underscore (_), followed by any number of letters, numbers, or underscores. If you have defined a constant, it can never be changed or redefined.
In order to develop and run PHP pages, the following 3 basic components need to be installed on your computer system. Web Server - PHP will work with almost all Web Server software, including Microsoft's Internet Information Server (IIS), but then Apache Server is more commonly used. Download Apache for free from: http://httpd.apache.org/download.cgi
The PHP configuration file, php.ini, is the last and most direct step that affects PHP's functionality. This php.ini file is read every time PHP is initialized, in other words, whenever httpd is restarted for the Module Version or with each Script execution for CGI version. If your changes don't show up, remember to stop and restart httpd. If still not showing, use phpinfo() to check the path to php.ini.
What is php?. PHP started as a small open source project, but as it progressed, more and more people found it to be more and more useful. PHP was developed from a product called PHP/FI. PHP/FI, created by Rasmus Lerdorf in 1994, was originally viewed as a simple subset of the Perl script code to track online access to his resume. He named this script "Personal Home Page Tools".