Home>Article>Backend Development> How to enable CURL support in php

How to enable CURL support in php

尚
forward
2020-03-21 17:18:38 6799browse

How to enable CURL support in php

When developing CMS with PHP, you need to use PHP's curl function. By default, this function needs to enable the CURL extension. If you have the right to use the host, you can use PHP.ini File to open this extension, the method is as follows:

1. Open php.ini, locate;extension=php_curl.dll, and remove the ";" in front of it.

2. Copy the three files: php_curl.dll, libeay32.dll and ssleay32.dll in the ext directory under the PHP directory to the system system32 directory, and restart IIS or apache.

3. In order to ensure whether the CURL extension is enabled, you can test it with the following code:

Related recommendations:

PHP video tutorial://m.sbmmt.com/course/list/29/type/2.html

The above is the detailed content of How to enable CURL support in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete