Home>Article>Backend Development> How to check whether curl is installed in php

How to check whether curl is installed in php

藏色散人
藏色散人 Original
2021-05-18 10:47:37 2907browse

How to check whether curl is installed in PHP: First, create a new file "phpinfo.php" in the PHP environment; then access the file in the browser. If you see "cURL support" as "enabled", it means it is installed. curl.

How to check whether curl is installed in php

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

Create a new file phpinfo.php

in the PHP environment

The content is:


      

After saving, visit this phpinfo.php file with your browser

Search on the page: curl

If you see cURL support as enabled, it means it has been installed

Recommended study: "PHP Video Tutorial"

The above is the detailed content of How to check whether curl is installed in php. For more information, please follow other related articles on the PHP Chinese website!

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