- What is PHP
- PHP Installation
- PHP with Wampserver
- Write PHP code
- Comment Code in PHP
- Echo and print
- PHP Variables
- PHP Variables Scope
- Arithmetic Operators
- Logical Operators
- Assignment Operators
- Comparison Operators
- String Operators
- PHP Conditional Statement
- IF - ELSE Statement
- IF - ELSEIF - ELSE Statement
- PHP Switch Statement
- PHP Loop Types
- PHP for loop
- PHP while loop
- PHP do-while loop
- PHP foreach loop
- PHP Constant
- PHP Magic Constants
- PHP Function
- PHP isset() Function
- PHP empty() Function
- PHP String Functions
- PHP with HTML Forms
- PHP GET and POST Methods
- Form ACTION attribute
- $_GET, $_POST, $_REQUEST
Run PHP using wampserver
This PHP tutorial we will learn PHP installation process step by step, and after installation learn how to create PHP script file and how to run or execute php script file on server.
Download WampServer Here : Downlaod Wampserver link
After successfully download Wampserver install setup run as administrator.
After Successfully Installed Wampserver open wampserver as like below :
All Programs — >> WampServer –>> Start WampServer
After start the Wampserver show the wampserver icon on taskbar near to clock icon at right bottom of windows screen.
Below menu you can Start All Services and Stop All Services of wampserver.
There is a top most option “Localhost”, which shows the server configuration.
Now Click on “Localhost” you have below screen for server configuration. Verson configuration PHP version and Apache Server Version configuration which we have already installed on our computer system.
Here, the “www directory” option define the path where we can save the PHP file.
The default location path is “C:\wamp\www“.
We must save all PHP page at in “www” folder.
When we click on “www directory” option on above menu it will locate directly to www folder in C drive. where we have to save all PHP file.
PHP Wampserver by default create a file index.php in www folder. Where we run the index file on browser it look like : http://localhost/index.php
Now, If you want to create new PHP file page, it must be save in www folder.
Suppose we create new file “meere.php” in www folder. if we launch this file then we must write like : http://localhost/meera.php
If we want to create new website with new name then create new folder with your website name in www folder like www -> MyWebsite. Now save all PHP pages in MyWebsite folder. If we want to launch this pages we should write like :
Watch this php video tutorial for installation php process.
This php tutorial very help full for php beginners to install and setup php environment for php web development.