0

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?

B--rian
  • 5,578
  • 10
  • 38
  • 89
ArashShiri
  • 55
  • 7
  • 1
    Maybe 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

0 Answers0