I am using the Xampp server with php5 . I have been trying to get the curl extension working. But, unable to do it. I uncommented the php_curl.dll line in php.ini. I dont see curl enabled in phpinfo() . I also copied the ssleay32.dll and libeay32.dll files to both syswow64 and system32 directories. Do i have to install anything on the server? Has anyone used xampp server before with curl ? thanks
1条回答 默认 最新
- drll85318 2011-05-02 00:30关注
To be honest I did not used
XAMPP
but couple of times I've faced problems withWAMP
extensions on Windows.Almost always reason was one of the following:
- There aren't required file in
/ext
directory, - Extension line in
php.ini
is commented, - I forgot to restart server.
Also, this looks interesting (from link #1 below):
There’s a straight-forward XAMPP FAQ Entry about their php.ini stucture. For those looking for the easy fix, ignore everything but the /apache/bin/php.ini file. That’s the only one that counts, regardless of which PHP version you’re currently using.
What about all the .dll files you need? Well, you don’t need them. Everything you need to run CURL on a XAMPP install is included in the download. Stop downloading extra crap and sticking it all over your system. XAMPP knows what it needs, where it’s at, and how to use it. End of story.
If above steps doesn't help, read following articles (and comments):
- Using CURL in XAMPP
- Enable CURL with XAMPP on Windows XP
- Enable Curl on Xampp
- Getting cURL to Work in XAMPP
Be aware of multiple php.ini files in XAMPP. Be sure that you have edited right one.
P.S. I've just tried to enable cURL in
Wamp/XP
. I've removed leading semicolon;
from line;extension=php_curl.dll
and restarted server. Now I can seecURL support: enabled
inphpinfo()
page. I guess that's easy inXAMPP
too.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报 - There aren't required file in
悬赏问题
- ¥35 MIMO天线稀疏阵列排布问题
- ¥60 用visual studio编写程序,利用间接平差求解水准网
- ¥15 Llama如何调用shell或者Python
- ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
- ¥15 win10权限管理,限制普通用户使用删除功能
- ¥15 minnio内存占用过大,内存没被回收(Windows环境)
- ¥65 抖音咸鱼付款链接转码支付宝
- ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
- ¥15 blast算法(相关搜索:数据库)
- ¥15 请问有人会紧聚焦相关的matlab知识嘛?