What should I do if the php environment does not support pdo?

王林
Release: 2023-03-04 13:04:01
Original
3746 people have browsed it

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.

What should I do if the php environment does not support pdo?

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
Copy after login

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();
Copy after login

Run it. If you can see the information as shown in the figure, the connection is successful.

What should I do if the php environment does not support pdo?

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template