johnsmith153 Posted June 9, 2010 Share Posted June 9, 2010 Is there a simple PHP script to check if a website is operating (i.e. the server is not down etc.)? If the website is working perfecly then it returns true. If the site is down then false. Link to comment https://forums.phpfreaks.com/topic/204249-check-if-a-website-is-up-server-down/ Share on other sites More sharing options...
trq Posted June 9, 2010 Share Posted June 9, 2010 Yes, more than likely such a script exists. However, this board is for help with code, not help looking for it. Link to comment https://forums.phpfreaks.com/topic/204249-check-if-a-website-is-up-server-down/#findComment-1069748 Share on other sites More sharing options...
johnsmith153 Posted June 9, 2010 Author Share Posted June 9, 2010 Maybe you can point me in the right direction (various searches on Google return services that do it but doesn't help with creating a script)? Would cURL be the best way? Link to comment https://forums.phpfreaks.com/topic/204249-check-if-a-website-is-up-server-down/#findComment-1069750 Share on other sites More sharing options...
mrMarcus Posted June 9, 2010 Share Posted June 9, 2010 You could ping it and see if you get a response. Link to comment https://forums.phpfreaks.com/topic/204249-check-if-a-website-is-up-server-down/#findComment-1069751 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.