I'm using an API for sending SMS in my PHP web aplication. I am using the PHP SoapCLient to send requests to the API, but how do I handle the case that the API server is down?
Asked
Active
Viewed 74 times
0
-
1Maybe this post will help you: https://stackoverflow.com/questions/3500527/php-soapclient-timeout. There they created a wrapper for the Soap client which can handle a timeout. – CodyKL Feb 18 '20 at 06:59
-
Thanks @CodyKL, but as you can see in accepted answer's comments it is not working properly, I thinks set time out in ini_set() is better – ArashShiri Feb 18 '20 at 07:32