保证配置正确,且开启php.ini里面的curl功能, 如下:
extension_dir = "D:/php7.2.11Win32x64Ts/ext/" extension=curl
---------------------------------------------------------------------
但还是提示错误, 如下:
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: D:/php7.2.11Win32x64Ts/ext/curl (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3), D:/php7.2.11Win32x64Ts/ext/php_curl.dll (xefxbfxbdxd2xb2xefxbfxbdxefxbfxbdxefxbfxbdxd6xb8xefxbfxbdxefxbfxbdxefxbfxbdxefxbfxbdxc4xa3xefxbfxbdxe9xa1xa3)) in Unknown on line 0
解决方案:
#在apache 的主配置文件httpd.conf中加入 LoadFile "D:/php7.2.11Win32x64Ts/libssh2.dll"