PHP Simple Open Curl Method (test feasible) original, Curlfont
This article explains how PHP simply turns on curl. Share to everyone for your reference, as follows:
First, the question:
The Windows host appears with the "call to undefined function Curl_init" error prompt, and there is no defined function, that is, PHP has not opened support for the Curl_init function.
Second, the solution:
Need to open PHP's Curl library. The steps are as follows:
① Open php.ini (usually under C:\Windows\ directory, wampserver typically in a directory like C:\wamp\bin\php\php5.3.8\ ), find the copy code The code is as follows: Extension=php_curl.dll remove the preceding semicolon ";"
② Check php.ini extension_dir value is which directory, check whether the directory has php_curl.dll, if not, please download Php_curl.dll
③ libeay32.dll,ssleay32.dll the PHP directory into C:\Windows\System32.
④ reboot under Apache or IIS.
Using the Phpinfo () function to view configuration information, it is visible that curl is turned on:
More readers interested in PHP curl related content can view this site topic: "PHP Curl Usage Summary"
I hope this article is helpful to you in PHP programming.
Articles you may be interested in:
- How to open php Curl extension in Windows R2 64-bit server
- Discussion on the problem of curl opening in PHP
- Turn on the curl extension and let the server support the PHP Curl function (remote capture)
- How PHP uses Curl to open HTTPS Web sites
- PHP Curl Emulation Login Sina Weibo crawl page content based on eaglephp framework Development
- Getting Started with curl in PHP tutorial
http://www.bkjia.com/PHPjc/1091110.html www.bkjia.com true http://www.bkjia.com/PHPjc/1091110.html techarticle PHP Simple to open the method of curl (test feasible) original, Curlfont This article tells the PHP simple to open the method of curl. Share to everyone for your reference, as follows: First, problem: Windows main ...