搞了一晚上,按照网上说的都试了一遍,最后看到一帖子,才成功;
首先把curl_init需要的依赖包放好,然后打印查看
Configuration File (php.ini) Path | C:\Windows |
Loaded Configuration File |
phpinfo()输出 loaded configuration file none,解决方法可在apache配置文件中增加PHPIniDir “The path to your php.ini”,重启apache。确保PHPIniDir在loadModule php5_module之前