Solution to the problem that php cannot load the extension: first check whether the path of "extension_dir" in "php.ini" is correct; then add "D:\php5.5.38" to the system variable; finally check apache configuration and make modifications.
Recommendation: "PHP Video Tutorial"
There will be some problems when modifying php.ini A small problem causes the extension to fail to load.
For example, php_mysql.dll is clearly enabled in php.ini, but when running the project, an error is reported saying that php_mysql is not supported. In this case, the system must not be able to find the file php_mysql.dll
First check whether the path of extension_dir in php.ini is correct. Pay attention to the direction of the slash.
Add D:\php5.5.38 and D:\php5.5.38 \ext
# to the system variables. ##Then check the configuration in apacheIf the configuration is correct but an error is still reported, and the loaded configuration file in the picture below is not displayedRun phpinfo.php as shown in the pictureIndicates that the system can load the php.ini file. If not, it means that the file has not been loaded.
The above is the detailed content of What should I do if php cannot load the extension?. For more information, please follow other related articles on the PHP Chinese website!