PHP

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

Written by Ian Carnaghan · 8 sec read >

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.

Last Updated On March 22, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of