![]() ![]() Anything is possible with coffee and code. Let us know if you have an excellent idea for the next topic! Contact Anto Online if you want to contribute. Anto Online takes great pride in helping fellow Cloud enthusiasts. Call to Undefined Function idn_to_ascii()Īnto's editorial team loves the cloud as much as you! Each member of Anto's editorial team is a Cloud expert in their own right.How to solve the undefined variable/index/offset PHP error.You will no longer get a “call to undefined function curl_init()” error when using PHP’s cURL functions. On newer versions, the package name as changed: sudo apt install php-curl. The curlinit () function returns a Curl instance for us to use in later functions, and you should always store it for later. Assuming the webserver is Apache 2: sudo apt-get install php5-curl sudo service apache2 restart. If everything is correct, restart PHP-FPM. On old versions of Debian and Ubuntu, you solved this by installing the Curl extension for PHP, and restarting the webserver. configuration for php CURL module priority20 extensioncurl.so. You are POSTing the json incorrectly - but even if it were correct, you would not be able to test using printr(POST) (read why here).Instead, on your second page, you can nab the incoming request using filegetcontents('php://input'), which will contain the POSTed json. ![]() ![]() Ensure the /etc/php5/mods-available/curl.ini exists and has the curl.so loaded. Sudo systemctl restart nginx Wrapping up undefined function curl_init error Ensure the path in extensiondir exists, and contains curl.so, if not, change to the correct path. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |