Monday, June 7, 2021

How to find out if curl is enabled for PHP on your web server?

 https://www.discussdesk.com/how-to-install-curl-and-check-curl-is-enabled-in-web-server.htm

1. phpinfo

curl

cURL support     enabled
cURL Information     7.54.0         
 
 

2. Verify through PHP code


 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";
}    















No comments:

Post a Comment

Please add value. Sharing is caring