In this article, you have become familiar with the basic syntax in PHP. You may find a lot of confusing parts in some of the code examples above, but that's okay because you will understand it after reading a few more articles later. In the following article, I will show you the concept of variables because if you learn basic PHP , the use of variables is a lot.
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.