3. PHP program can be run under various like WAMP,
XAMPP etc.
XAMPP Server: It is a free open source cross-platform
web server package.
Webservers for PHP
4. you can download it from the following link:
http://www.apachefriends.org/en/xampp-
windows.html
https://sourceforge.net/projects/xampp/files/latest/d
ownload
After downloading, just follow the following step to
start xampp server:
Step1
Install XAMPP
Step2
Assume you installed xampp in C Drive.
Go to: C:xampphtdocs
XAMPP Server
5. Create your own folder, name it for example as
PHPCode.
Step3
Now create your first php program in xampp and name
it as “add.php”:
Continued..
7. Step4
Now double click on “XAAMP CONTROL PANEL” on
desktop and START “Apache”
(icon also appears on the bottom)
(XAAMP Control Panel Screenshot is on next slide)
Continued..
9. Step5
Type localhost on your browser and press enter:
It will show the following Screen:
Continued..
10. Step6
Now type the following on browser:
http://localhost/ PHPCode /
Below screenshot shows php files created under folder
“PHPCode”
Continued..
11. Step7
Click on “add.php” and it will show the following:
Continued..
12. The SQL CREATE DATABASE Statement
The CREATE DATABASE statement is used to create a new SQL database.
Syntax
CREATE DATABASE databasename;