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. Quote 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. Quote 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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.