在PHP中启用cURL [英] Enabling cURL in PHP

查看:53
本文介绍了在PHP中启用cURL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在运行PHP的W2K服务器上启用cURL。请记住,我是.NET开发人员,所以当涉及到PHP时,这是一个完整而彻底的新手!!


自从我最初以来已经有八到十年了安装PHP并且不记得我是怎么做的 - 升级已经通过刚刚替换旧的exe和dll来执行!基本上它没有任何干扰我跑得很开心!当前版本是4.4.7


到目前为止我已经


1.下载了最新版本的libcurl

2.将php_curl.dll复制到PHP / Extensions目录

3.在phpED中找到libeay.dll和ssleay.dll的副本并将它们放在PHP目录中

4.在php.ini中添加了以下内容

extension_dir = C:\ php \ extensions

extension = php_curl.dll



我遇到过要使用PHP的cURL支持,你还必须编译PHP --with-curl [= DIR]"但是 - 这一定听起来很愚蠢 - 我不知道采取什么步骤来编译PHP OS!我已经google搜索并搜索了PHP网站,但所有编译参考都假定读者知道使用什么基本工具...


任何帮助都会非常感激

I''m attempting to enable cURL on a W2K server that runs PHP. Please bear in mind that I''m a .NET developer so a complete and utter newbie when it comes to PHP!!

It''s been some eight to ten years since I originally installed PHP and can''t remember how I went about it - updgrades have been performed by just replaced the old exe and dll with later ones! Basically it''s run quite happily without any interference from me! Current version is 4.4.7

So far I''ve

1. Dowloaded the latest version of libcurl
2. Copied php_curl.dll to the PHP/Extensions directory
3. Found copies of libeay.dll and ssleay.dll in phpED and placed them in the PHP directory
4. Added the follwing lines to php.ini
extension_dir = C:\php\extensions
extension=php_curl.dll


I''ve come across "To use PHP''s cURL support you must also compile PHP --with-curl[=DIR]" but - and this must sound idiotic - I have no idea what steps to take to compile the PHP OS!! I''ve googled and searched the PHP site but all references to compiling assumes that the reader knows what basic tools to use...

Any help would be very much appreciated

推荐答案

嗨。


查看 cUrl 部分。


这是该页面的一个小摘录
Hi.

Check out the cUrl section at php.net.

This is a small extract from that page
Win32用户注意事项:为了在Windows环境中启用此模块,必须在PATH中提供libeay32.dll和ssleay32.dll。


你不需要来自cURL网站的libcurl.dll。
Note to Win32 Users: In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH.

You don''t need libcurl.dll from the cURL site.


您好Atli


这就是我找到的地方......你还必须编译PHP --with卷曲[= DIR] QUOT; - 那就是我碰到众所周知的砖墙 - 砰的一声!
Hi Atli

That''s where I found "...you must also compile PHP --with-curl[=DIR]" - and that''s the point at which I hit the proverbial brick wall - thud!


哦,它就在我拿到我的提取物的上方:P


您是否将.ddl添加到PATH变量?

据我所知,添加php_licurl.dll作为扩展名并将其他两个添加到PATH应该这样做。


然后,我可能会非常错误......我会窥探一下,看看我能发现什么。
O yea, it was just above where I took my extract :P

Did you add the .ddl''s to the PATH variable?
As far as I can see adding the php_licurl.dll as an extension and adding the other two to the PATH, should do the trick.

Then again, I might be horribly wrong... I''ll snoop around a bit and see what I can turn up.


这篇关于在PHP中启用cURL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆