PHP Simple Open Curl Method (test feasible) original, curlfont_php tutorial

Source: Internet
Author: User

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.