PHP & MYSQL
PHP is server side programming language. It can be used to make a powerful and dynamic web. PHP is open source. PHP can be inserted in HTML code. Directly, we go to how to make a database and other database properties with PHP. First you must ensure the server is activated. Here, I use XAMPP (download XAMPP)for my local server. To open your XAMPP you can go to Start menu all programs XAMPP for windows XAMPP control panel. You will see this following picture. After that activate Apache and MySql service with clicking start button in XAMPP Control Panel Application in each service. If services was active there are a running sign beside start button.

Now open your browser. Here, I use Mozilla Firefox(download Mozilla Firefox) . Type “localhost” or “127.0.0.1”. Then you will see a page with orange color. And you can use MySql service by clicking “phpMyAdmin” in XAMPP tools.


You will go to “phpMyAdmin” page. This is the service to allow you to managing databases. And in the left of the page you will see databases already exist.

Attention, because PHP is server side programming you must put you PHP files in your server directory. If you were install XAMPP in drive “C:\Program Files\xampp”. Go to “htdocs” folder, and make a folder named “php”, finally put your php files there. To try this file(s) you type in your browser url http://localhost/php/ and click “connect.php”.
Good luck ^_^
0 comments:
Post a Comment