siddscool19 Posted March 2, 2010 Share Posted March 2, 2010 I am facing a weird problem if a page doesn't load like the server is not responding my curl script doesn't stop and keeps showing loading even though i have tried connecttimeout options and set them to the required value. Quote Link to comment https://forums.phpfreaks.com/topic/193909-how-to-stop-curl-if-page-doesnt-load/ Share on other sites More sharing options...
teamatomic Posted March 2, 2010 Share Posted March 2, 2010 Use curl to check the server/page status and if you get a 200 then go get the page. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/193909-how-to-stop-curl-if-page-doesnt-load/#findComment-1020497 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.