[英]Enabling cURL for automated PHP install on IIS 7
I'm trying to enable cURL in PHP when *.php files resolve in IIS sites. 我正在尝试在IIS站点中解析* .php文件时在PHP中启用cURL。 Before I would install PHP the old fashion way and edit the php.ini file and just enable cURL by uncommenting this line:
在我以旧的方式安装PHP并编辑php.ini文件之前,只需取消以下行的注释即可启用cURL:
extension=php_curl.dll 扩展名= php_curl.dll
Now that the PHP install is automated in Windows for version 5.3.5, I'm not really sure what Windows did, or where to enable cURL. 现在,在Windows中,对于版本5.3.5的PHP安装是自动进行的,我现在不确定Windows做了什么,或在哪里启用cURL。 How can it be enabled in PHP 5.3.5?
如何在PHP 5.3.5中启用它?
http://www.microsoft.com/web/platform/phponwindows.aspx http://www.microsoft.com/web/platform/phponwindows.aspx
Also, do I need to do anything special in IIS for PHP files to be understood? 另外,对于要理解的PHP文件,我需要在IIS中做一些特殊的事情吗? I used to follow this guide, but again, now that the PHP install is automated, I don't even know how I can use these instructions.
我曾经遵循该指南,但是现在PHP安装是自动化的,我什至不知道如何使用这些说明。
http://www.howtogeek.com/50432/how-to-install-php-on-iis-7-for-windows-server-2008/ http://www.howtogeek.com/50432/how-to-install-php-on-iis-7-for-windows-server-2008/
So it looks like PHP will work in IIS 7 from the automated install. 因此,PHP似乎可以通过自动安装在IIS 7中运行。 I found the Handler Mapping for *.php.
我找到了* .php的处理程序映射。 So now I just need to figure out how to turn on cURL in PHP.
所以现在我只需要弄清楚如何在PHP中打开cURL。 Maybe I do it the same way.
也许我也是这样。 But in C:\\Program Files (x86)\\PHP\\v5.3.
但是在C:\\ Program Files(x86)\\ PHP \\ v5.3中。
This was the missing part. 这是缺少的部分。 cURL is already enabled by default in PHP 5.3.5.
默认情况下,PHP 5.3.5中已启用cURL。
C:\>iisreset
Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted
C:\>
Test it! 测试一下!
<html>
<head>
<title>PHP cURL Test</title>
</head>
<body>
<?php
echo function_exists('curl_version');
?>
</body>
</html>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.