Home >Backend Development >PHP Tutorial >A simple method to enable curl in PHP (test feasible) original, curlfont_PHP tutorial

A simple method to enable curl in PHP (test feasible) original, curlfont_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-12 09:00:481060browse

A simple method to open curl in PHP (test feasible) Original, curlfont

This article describes a simple method to open curl in PHP. Share it with everyone for your reference, the details are as follows:

1. Question:

The error message "Call to undefined function curl_init" appears on the windows host. There is no defined function, that is, PHP has not yet opened support for the curl_init function.

2. Solution:

You need to enable the curl function library of PHP. The specific steps are as follows:

① Open php.ini (usually in the C:Windows directory, WampServer is usually in a directory similar to C:wampbinphpphp5.3.8) and find Copy the code The code is as follows:;extension=php_curl.dll remove the preceding semicolon ";"

② Check which directory the extension_dir value of php.ini is, and check whether there is php_curl.dll in the directory. If not, please download php_curl.dll

③ Then copy libeay32.dll and ssleay32.dll in the php directory to c:windowssystem32

④ Just restart apache or iis.

Use the phpinfo() function to view the configuration information. You can see that curl is enabled:

Readers who are interested in more content related to php curl can check out the special topic of this site: "Summary of php curl usage"

I hope this article will be helpful to everyone in PHP programming.

Articles you may be interested in:

  • How to enable php curl extension in windows 2008 R2 64-bit server
  • Discussion on the problem of opening curl in PHP
  • Enable CURL extension and let the server support PHP curl function (remote collection)
  • How to use curl to open https website in PHP
  • PHP CURL simulates login to Sina Weibo and captures page content. Developed based on EaglePHP framework
  • Introductory tutorial on using curl in PHP

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1091110.htmlTechArticleHow to simply open curl in PHP (test feasible) Original, curlfont This article describes how to simply open curl in PHP. Share it with everyone for your reference, the details are as follows: 1. Question: Windows master...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn