本文介绍了在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

推荐答案




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

08-26 22:50