Wednesday, January 17, 2018

Why learn PHP

Why learne PHP

The important reasons to learn PHP as  first server side programming language:-

●   PHP is an open source language. This means that all PHP modules are available freely and can be customized to fit the requirements of any application.

● There are lots of free hosting services available that only support PHP; other server side languages, such as ASP.NET, have high costs associated withhosting.

●  Being the first advanced server side language, PHP has a huge developer’s community where you can seek help if face issues.

●  The installation and deployment of PHP based websites is a matter of few simple clicks.

●  PHP supports procedural as well as object oriented programming in PHP4 and PHP5.

●  PHP have several famous frameworks that can be used as the foundation for building your web applications. Some of them include WordPress, Joomla, Cake PHP, Drupal, and Symfony.

Installing the Local Server Your PHP

based web pages are going to run on a live web hosting server; however, for development and testing purposes, it is always advisable to use a local webserver. Fortunately, everything you need to install in order to run your PHP pages on local servers come packaged in a single installation known as XAMP (Operating System, Apache, MySQL and PHP). The last three characters remain constant while the operating system is a variable denoted by X. If you are using a Linux based system, you can use LAMP. Similarly, you can use a WAMP installation package for Windows-based systems. Depending on the system you have, you can download the corresponding installation package from the following link:

https:// download.html

Note: For this book, we are using the WAMP server. Please note that PHP script and programming syntax remains the same in different operating systems. Even if you are developing on a system other than Windows, you can follow along.
       When you go to the above link, you will find options to download XAMP for different operating systems. You can choose XAMP for Windows from that page. You can download it from following link as well:

http:// en

Installation Steps:

To download and install WAMP servers on your machine, follow these steps:

1.  When you click on the above link, a page will appear. The second menu item in the menu bar is the download option; click that. You will see two download options, one for 32 bit and one for 64 bit. This is shown in the following figure:

2.   Once you select the OS from 32 or 64 bit, warning messages will be displayed in a pop up box. If you look at the second line, you will see the link “download directly”at the end of the second line. Click it. (Refer to figure for reference)

3.  Depending on the browser (or the downloader manager) you are using, you will be presented with a download option. Download the file.

4.    Now, go the directory where you downloaded the file and open it. You should see the WAMP server installation wizard. Click the “Next”button.

5.   You will be presented with the license agreement window. Check the accept agreement radio button and click .

6.  A new window will appear that will ask for the installation path. I recommend leaving the default path as it is and clicking the “Next”button.

7.  On the window that appears, check both boxes and click “Next”.

8.  A dialogue box will appear. Click the “Install”button to start the installation process. During installation, the option to select the default browser will appear. Select the default browser for your web page (you can change it later). At the end of the installation, you will be presented with a window to enter the SMPT and Email servers. Leave both the fields filled with default values and click .

9.  On the dialogue box that appears, click the “Finish”button. (Leave the only box checked). See the below figure for reference: Testing the Local Server Once you have installed the local server following the aforementioned steps, you will see a green WAMP icon at the bottom right of your system tray. This is shown in the following figure:

Testing the Local Server 

Once you have installed the local server following the aforementioned steps, you will see a green WAMP icon at the bottom right of your system tray. This is shown in the following figure:

Click the icon. A panel should appear at the bottom right of the system, as shown in the following figure:

If you click the top option, “Localhost”, you should see a webpage appear in your default browser. If your WAMP server is running successfully without any issues, you should see following page in the browser:

The last thing I want you to check before we end this blog is the “www”directory. This is the directory where we will place our PHP files. In order to open this directory, again go to the WAMP panel and click the “www directory”option. This is the fourth option from the top.

Once you click the “www directory”option, your “www”directory Will be opened in a new window. Your “www”directory should contain following this :-


And that’s it for the blog In this blog, we learned how to install the WAMP server. In the blog we will run  first PHP program and the process of PHP please clicking the Link above mentioned and learn how to run first Programming process in PHP.  READ MORE


Please comment and follow this site blog inbox