Should I use file_get_contents or curl for web service requests?
- by Fedor
I have a zip code lookup service and I'm worried about any possible timeouts or the server being down.
If I don't get any HTTP Response after 20-25s of the initial request I would want to respond with a JSON signifying it failed:
({ success:0 })