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. 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 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
Archived
This topic is now archived and is closed to further replies.