Home  >  Article  >  Backend Development  >  curl_exec() has been disabled for security reasons

curl_exec() has been disabled for security reasons

WBOY
WBOYOriginal
2016-06-23 13:57:521209browse


这个从网页抓取信息,我在本地是成功的,为什么上传到服务器后就这样了,这样要改服务器的配置吗,但是服务器是不给我碰的。。。


回复讨论(解决方案)

查看下php.ini,或做一个页面,内容 phpinfo() ?> 看看
disable_functions中是否有curl_exec和curl_error这个方法,如果有,则把这两个方法在disable_functions中删除。

怎么删除,服务器不是我管理的,删除本地的也没用吧

echo ini_get("disable_function"); 输出看看

禁用了 所以服务器是不给你用这些方法去采集的。换地吧或者就在本地做

Statement:
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