codeIgniter 3.0中的curl类 [英] Curl class in codeIgniter 3.0
本文介绍了codeIgniter 3.0中的curl类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Codeigniter的初学者。我使用CI 3.0(最新版本)。我想在我的代码中使用recaptch。当我在google搜索codeigniter中的curl类时,我发现这段代码
I'm a beginner in Codeigniter.I use CI 3.0 (last version).I wanna use recaptch in my code.When I search in google for curl class in codeigniter I find this code
$this->load->library('curl');
但是当我在我的代码中使用它时
无法加载请求的类:Curl
和现实没有这个类。有人可以帮我请求吗?谢谢。
but when I use this in my code
Unable to load the requested class: Curl
and reality there isn't this class. Can anybody help me pleas? Thanks.
推荐答案
this-> load-> library('curl');
this->load->library('curl');
但是当我在我的代码中使用它时
无法加载请求的类:Curl
和现实中没有这堂课。有人可以帮我请求吗?谢谢。
but when I use this in my code
Unable to load the requested class: Curl
and reality there isn't this class. Can anybody help me pleas? Thanks.
首先需要在系统上安装库;请参阅 http://curl.haxx.se/ [ ^ ]。
You first need to install the library on your system; see http://curl.haxx.se/[^].
GitHub - philsturgeon / codeigniter-curl:这不再是维护,使用http://docs.guzzlephp.org INSTEAD [ ^ ]
添加此库。在CI
GitHub - philsturgeon/codeigniter-curl: THIS IS NO LONGER MAINTAINED, USE http://docs.guzzlephp.org INSTEAD[^]
add this lib. in CI
这篇关于codeIgniter 3.0中的curl类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文