Support configuration method for PHP curl under Windows _php Tutorial

Source: Internet
Author: User
If we install the PHP environment but in the test with curl_init () prompt fatal error:call to undefined function:curl_init (), this is to prove that we do not have curl configuration, let me introduce.

Call the Curl_init () function test with the following error message:

Fatal error:call to undefined Function:curl_init ()

WindowsXP 2003

First of all make sure that your PHP is ready to use, this article does not explain the PHP configuration under Windows, just add curl extension.
1, copy the PHP directory of Libeay32.dll and ssleay32.dll two files to c:/windows/system32 directory.
2, modify the php.ini. Remove extension = Php_curl.dll in front of the semicolon.
3. Restart Apache
Complete!


Windows 7/8/vasta

You'll need to the Extension_dir setting-to-the directory where your extensions lives, or where you hav E placed your php_*.dll files. For example:

The code is as follows Copy Code

Extension_dir = C:phpextensions


Enable the extension (s) in php.ini-want to use by uncommenting the Extension=php_*.dll lines in php.ini. This is do by deleting the leading; From the extension your want to load.

Example #1 Enable Bzip2 extension for php-windows

The code is as follows Copy Code

The following line from ...
; Extension=php_bz2.dll

... to
Extension=php_bz2.dll

http://www.bkjia.com/PHPjc/633218.html www.bkjia.com true http://www.bkjia.com/PHPjc/633218.html techarticle If we install the PHP environment but in the test with curl_init () prompt fatal error:call to undefined function:curl_init (), this is to prove that we do not have curl configuration, the following I introduce ...

  • Related Article

    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.