Has curl_exec() been disabled in PHP? - need help pretty quickly

Website URL

https://t3xtured.rf.gd/rtm/rzeszowgo/testcurl.php

Error Message

About 1 hour ago, curl_exec() in PHP was disabled. This function is critical for my website and code to work properly, so I need information about what happened and whether it can be re-enabled.

Other Information

I ran the following PHP test code and got these results:

curl_init => YES
curl_setopt => YES
curl_setopt_array => YES
curl_exec => NO
curl_close => YES
curl_error => YES
curl_getinfo => YES

I also checked ini_get("disable_functions") and received the following list:

chmod,php_uname,putenv,exec,phpinfo,system,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,socket_create_listen,socket_create_pair,socket_create,socket_get_option,socket_getpeername,socket_getsockname,socket_last_error,socket_listen,socket_read,socket_recv,socket_recvfrom,socket_select,socket_send,socket_sendto,socket_set_block,socket_set_nonblock,socket_set_option,socket_shutdown,socket_strerror,socket_write,stream_socket_server,pfsockopen,disk_total_space,chown,diskfreespace,getrusage,get_current_user,set_time_limit,dl,listen,chgrp,link,symlink,proc_nice,proc_get_stats,proc_terminate,shell_exec,ssh2_exec,posix_getpwuid,posix_getgrgid,posix_kill,ini_restore,dbase_open,posix_mkfifo,sleep,imap_open,apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_lookup_uri,apache_note,apache_request_headers,apache_response_headers,ini_get_all,apache_setenv,getallheaders,virtual,curl_multi_exec,curl_exec

As you can see, curl_exec has been disabled.

This function was working correctly earlier, and my website depends on it. I would appreciate a quick explanation of what happened and assistance with restoring access to curl_exec().

Same on our website (shemakesknots.pl), all we get is:

I also facing this issue today

Hello InfinityFree Support,

I am using a PHP SMS API integration on my website. My application shows this error:

“Fatal error: Call to undefined function curl_exec()”

In my hosting control panel, cURL appears as enabled, but when I test using:

function_exists(‘curl_exec’)

it returns false, meaning cURL functions are not available in PHP runtime.

I have already tried changing PHP versions, but the issue still exists.

Could you please check whether the cURL extension is properly enabled on my hosting server/account?

Thank you.

Same issue here. It worked fine in the morning but now function_exists(‘curl_exec’) returns false

I have implemented a temporary solution on my website and am using file_get_contents() while cURL_exec() is unavailable.

Issue seems fixed

Yes, it seems fixed now! I’m guessing that some work was done on the PHP setup that resulted in cURL temporarily not being available. But it seems to be all good now.