Configuring PHP Engine to Access MySQL Database


How to configure PHP engine to access MySQL database?


Assuming that you have installed the Apache server, the PHP engine and the MySQL database. Assuming that you have configured the Apache server working the PHP engine correctly. Now you need to configure PHP to support MySQL functions using this tutorial.

1. Assuming that your PHP engine is installed at C:/Program Files/php-5.2.0-Win32/.

2. Open in "notepad" the PHP configuration file C:/Program Files/php-5.2.0-Win32/php.ini. Enter the following line:


3. Make sure your MySQL databaser is running.

4. Restart your Apache server.

5. Your PHP scripts that use MySQL database should work now.

2006-12-09, 10023🔥, 0💬