Very simple but effective description of PHP. Learn it to create any kind of website.
You might have seen a lot of website having tail ".php". Basically these are PHP websites. You might have been quiet impressed by the site design and dynamic qualities of these websites. You can too create websites like these in a matter of hours. But first you need to know what on earth PHP is.
In the world of the wide web, there are two general types of coding languages: “Server side” and “Client side”.
This means that one type is run, or interpreted, on the web server itself, and the other is run in your web browser. PHP is a Server side language. All of the processing is done on the web server itself, and the result is delivered to your web browser as HTML (which, by the way, is a Client side language). Your web server
must also have PHP installed in order for it to work! Most web hosting providers have PHP installed, so if you are in doubt, simply ask them.
But testing PHP websites is quite a hectic work. You need to have PHP installed in your system. You also need to install a server like Apache. But good news is both are free and open source. You can download them and install from their respective website. (Packages from other websites may not be reliable).
You might have seen a lot of website having tail ".php". Basically these are PHP websites. You might have been quiet impressed by the site design and dynamic qualities of these websites. You can too create websites like these in a matter of hours. But first you need to know what on earth PHP is.
In the world of the wide web, there are two general types of coding languages: “Server side” and “Client side”.
This means that one type is run, or interpreted, on the web server itself, and the other is run in your web browser. PHP is a Server side language. All of the processing is done on the web server itself, and the result is delivered to your web browser as HTML (which, by the way, is a Client side language). Your web server
must also have PHP installed in order for it to work! Most web hosting providers have PHP installed, so if you are in doubt, simply ask them.
But testing PHP websites is quite a hectic work. You need to have PHP installed in your system. You also need to install a server like Apache
. But good news is both are free and open source. You can download them and install from their respective website. (Packages from other websites may not be reliable).
I am assuming that you have already installed the Apache Server in your system.
Run the MSI installer and follow the instructions provided by the installation wizard. You will be prompted to select the Web Server you wish to configure first, along with any configuration details needed.
You will then be prompted to select which features and extensions you wish to install and enable. By selecting "Will be installed on local hard drive" in the drop-down menu for each item you can trigger whether to install the feature or not
It is not recommended to install all extensions by default. Instead, use the Installation Repair Mode that can be triggered thru the "Add/Remove Programs" control panel to enable or disable extensions and features after installation.
After you install PHP You need to test it. Open the "Note Pad" and write the following code:
phpinfo();
?>
Save this file in "htdocs" of your server as phpinfo.php.
Now open your favorite browser and type: localhost/phpinfo.php
A long page will be displayed with all the PHP description. If the page doesn't comes then check your PHP installation.
0 comments:
Post a Comment