php open pdo extension

Under Windows 5.1 or later php, pdo and drive major databases together as an extended release with php, to activate them simply need to edit your php.ini file.

Open php.ini configuration file, find extension = php_pdo.dll (php configuration profile, open the corresponding extension), and extension = php_pdo_mysql.dll (open database extension corresponding to an example MySQL), remove the front ";" Notes , two rows of the modified content configured as follows:

extension=php_pdo.dll
extension=php_pdo_mysql.dll

Finally, restart apache

 

PDO extension can see the details by viewing the phpinfo

<?php
phpinfo();

Running about, find pdo, if you can see the message shown, indicating a successful connection, you can use

 

Guess you like

Origin www.cnblogs.com/huhewei/p/11576202.html