开发者

is cURL part of the original PHP installation?

开发者 https://www.devze.com 2023-01-02 16:29 出处:网络
When I first installed PHP did it include the libraries for c开发者_运维百科URL?To test if your version of PHP has cURL support create a php file:

When I first installed PHP did it include the libraries for c开发者_运维百科URL?


To test if your version of PHP has cURL support create a php file:

<?php phpinfo(); ?>

If you open this file in your browser, it will print out all the information regarding your php installation, including whether cURL is enabled.

Look for a line that says cURL support enabled, under a heading curl.


No, it's not enabled by default.

From the manual:

To use PHP's cURL support you must also compile PHP --with-curl[=DIR] where DIR is the location of the directory containing the lib and include directories. In the include directory there should be a folder named curl which should contain the easy.h and curl.h files. There should be a file named libcurl.a located in the lib directory.

However, the Windows distribution includes the built module (php_curl.dll), but I believe it's not enabled by default in php.ini.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号