关于curl_exec在服务器运行超时

WBOY
Release: 2016-06-23 14:17:57
Original
2318 people have browsed it

我在本地测试一切正常,本地安装的是DedeAMPZ环境,但是在服务器上面提示超时服务器是IIS,Fatal error: Maximum execution time of 30 seconds exceeded in

我已经按照网上方法弄了 、还是不行 下面是网上朋友写的,我按照下面的写法弄了不行!

1、拷贝PHP目录中的libeay32.dll, ssleay32.dll, php5ts.dll, php_curl.dll文件到 system32 目录。
2、修改php.ini:配置好 extension_dir ,去掉 extension = php_curl.dll 前面的分号。

3、重起apache或者IIS。

希望高手帮忙解决一下!谢谢


回复讨论(解决方案)

你的出错信息不是不能运行curl,而是超时,估计是请求url超时所致
在你的服务器尝试用浏览器访问那个url看看是否超时

我在本地测试一切正常,本地安装的是DedeAMPZ环境,但是在服务器上面提示超时服务器是IIS,Fatal error: Maximum execution time of 30 seconds exceeded in

我已经按照网上方法弄了 、还是不行 下面是网上朋友写的,我按照下面的写法弄了不行!

1、拷贝PHP目录中的libeay32.dll, ssleay32.dll, php5ts.dll, php_curl.dll文件到 system32 目录。
2、修改php.ini:配置好 extension_dir ,去掉 extension = php_curl.dll 前面的分号。

3、重起apache或者IIS。

希望高手帮忙解决一下!谢谢
谢谢你回答,问题已经解决了!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!