How to check if the CURL extention is installed and compiled with PHP

Add this line of code to a PHP script

var_dump(curl_version());

If there was a error similar to this Fatal error: Call to undefined function curl_version() or no results was shown, it means that CURL is not installed.

Image Credits: Photo by Isis França on Unsplash.

More Similar Posts

No results found.

Menu