The solution to the problem that the php environment does not support pdo: first open the php.ini configuration file; then modify the configuration [extension=php_pdo.dll] and [extension=php_pdo_mysql.dll]; and finally restart apache.
Specific method:
(Recommended tutorial: php graphic tutorial)
Open first php.ini configuration file, find extension=php_pdo.dll and extension=php_pdo_mysql.dll;
Then remove the previous ";" comment, the modified two lines of configuration content are as follows:
extension=php_pdo.dll extension=php_pdo_mysql.dll
Finally, just restart apache.
(Video tutorial recommendation: php video tutorial)
You can see the detailed information of the PDO extension by viewing phpinfo.
<?php phpinfo();
Run it. If you can see the information as shown in the figure, the connection is successful.
The above is the detailed content of What should I do if the php environment does not support pdo?. For more information, please follow other related articles on the PHP Chinese website!