check curl service in php

July 11, 2018127
Share Tweet Pin it

Copy the following code and save the file as php file in your server. 

if(in_array  ('curl', get_loaded_extensions())) {
    echo "CURL is available on your web server";
}else{
    echo "CURL is not available on your web server";
}

Now run the file in your server. Your curl service status will display as like the output mentioned above.

 

Enjoy with php Curl service.