PHP SOLUTIONS: DYNAMIC WEB (Graphic web design) DESIGN MADE EASY Updating
PHP SOLUTIONS: DYNAMIC WEB DESIGN MADE EASY Updating the PHP connector files Since the release of PHP 5.0.0, the code libraries that control connection between PHP and MySQL are no longer integrated into the PHP core. MySQL recommends that you replace the following three files with versions created by MySQL: php_mysql.dll php_mysqli.dll libmysql.dll The versions created by MySQL are compiled against the most recent MySQL Client libraries, so they contain fixes for bugs that may not have filtered through to the PHP versions. It takes about a week after the release of a new version of either MySQL or PHP for the updated connector files to become available. Using the previous version of connector files should not make any difference. 1. Go to http://dev.mysql.com/downloads/connector/php. 2. Download the ZIP files for both the mysqli extension and mysql extension for the latest version of MySQL. 3. Unzip both files to a temporary folder. When you unzip the second one, you will be warned that libmysql.dll already exists. Accept the option to overwrite it. You should now have the three files as shown here in your temporary folder (the version numbers may, of course, be different). 4. Stop Apache or IIS (refer back to Chapter 2, if necessary). 5. Cut libmysql.dll to your clipboard and paste it in the main PHP folder (C:php, if you followed the recommended setup in Chapter 2). When prompted, confirm that you want to overwrite the existing file. 6. Cut php_mysql.dll and php_mysqli.dll to your clipboard and paste them in the PHP extension folder (C:phpext). Confirm that you want to overwrite the existing files. 7. Restart Apache or IIS. 8. Load a page containing the script into a browser, and check that you have entries for mysql and mysqli as shown in the following screenshots. The Client API version should be the same as the number indicated on the MySQL download site in step 2.
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.