What do we need in PHP Database


 

What do we need in PHP Database

We need three things that execute the PHP scripts and MySQL database. The first one is the server, it is either on your computer or you host it. I recommend you to use Apache server, it is free and also nicely conjunction with PHP and MySQL.

We need three things that execute the PHP scripts and MySQL database. The first one is the server, it is either on your computer or you host it. I recommend you to use Apache server, it is free and also nicely conjunction with PHP and MySQL.

Part-4 : What do we Need ?

Before making any application or program, we need few software that is essential to run PHP and MySQL code. We need three things that execute the PHP scripts and MySQL database. 

The first one is the server, it is either on your computer or you host it. I recommend you to use Apache server, it is free and also nicely conjunction with PHP and MySQL.

The second thing you need to installed MySQL. It is a database that stores the information. We can also install or use other database with PHP but at the moment we will learn about MySQL database. In fact, the MySQL commands are also similar to SQL commands.

 MySQL is also free to download from any MySQL website and along with the MySQL we can also download the UI (User Interface) of  MySQL that is called the MySQL YOG.

Finally, we will need to installed the PHP on the server. It can be download from any PHP website and it is also free to use. You can install either WAMP, XAMPP OR LAMP to run the PHP scripts. If you have any one of those you don't need to install Apache and MySQL separately.

Let's check out  PHP and MYSQL by writing one small script and it will display the whole information about the configuration of Apache, PHP and MySQL.

<?php

    phpinfo();

?>

If you installed the PHP on your web server than it will show the huge page of information about PHP, Apache and MySQL.

It will look like the above image.

Ads