Xampp, PHP, Mysql and Php+Mysql
Xampp, PHP, Mysql and Php+Mysql
28, Jun,2009
26th Lecture
1
• XAMPP is a free and open source cross-
platform web server package, consisting
mainly of the Apache HTTP Server, MySQL
database, and interpreters for scripts written in
the PHP and Perl programming languages.
2
• XAMPP's name is an acronym for:
– X (meaning cross-platform)
– Apache HTTP Server
– MySQL
– PHP
– Perl
3
Download Links
4
Installation
5
• Stop Skype or Disable:
– Use port 80 and 443 as
alternatives for
incoming connections.
6
1
7
5
8
• Now, fire up your favorite browser and in the address bar,
enter http://localhost or http://127.0.0.1 and afterward
select your language
To continue.
9
Job Done!
10
• Click on STATUS in the left column to confirm
what’s running and what’s not.
11
Security
12
13
14
MySQL and PHP in xampp
15
What is PHP?
16
What is a PHP File?
17
What is MySQL?
18
• The MySQL database package consists of the following:
– The MySQL server: This is the heart of MySQL. You can
consider it a program that stores and manages your
databases.
– MySQL client programs: MySQL comes with many client
programs. The one with which we'll be dealing a lot is
called mysql. This provides an interface through which you
can issue SQL statements and have the results displayed.
– MySQL client Library: This can help you in writing client
programs in C. (We won't be taking about this in our
tutorial).
19
The difference between MySQL and mysql
20
Running and Stopping MySQL
– On Windows
21
– On Linux
• change to /etc/rc.d/init.d/ directory
– Mysql start
22
Basic operations
23
24
25
26
Inserting data into tables
27
• On Windows:
– Move the file to c:\mysql\bin.
– Make sure MySQL is running.
– Issue the following command
28
• On Linux
29
References
• http://www.w3schools.com/PHP/php_mysql_intro.asp
30
Any…
31