cURL script stopped working on ubuntu 14.04

June 10, 2016 2.5k views
Ubuntu PHP

Hello, I’m using textlocal.com for sending SMS via POST (PHP & cURL).

At first it was not working but then I removed “curl_exec” function from php.ini that was disabling it, which did the trick and everything was working fine but today it has stopped working suddenly. The script just loads and loads and does nothing.

Note- I have now added a timeout so my scripts stops trying after some time so the page doesn’t load forever but it is not sending the SMS from the server.

*I don’t know what is the problem because I have not made any changes to the script and it is working on localhost. *

Please help!

3 comments
1 Answer

This question was answered by @ankushsilhi:

Turns out the textlocal.com was blocking my server’s IP. I contacted them and now everything is working fine.

View the original comment

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!