jasonc Posted November 22, 2009 Share Posted November 22, 2009 I wish to find out if any of my sites are down by having a single page on one site that checks this and displays 'www.site.com DOWN' for each site is can not read. how do i ready the default home page files as not all are the same names. home.php home.html index.php index.html and so on if you see what i mean. can this be done? Link to comment https://forums.phpfreaks.com/topic/182487-test-is-sites-are-up-or-not/ Share on other sites More sharing options...
Garethp Posted November 22, 2009 Share Posted November 22, 2009 http://devzone.zend.com/article/1081 Just use http://site.com/ instead of http://site.com/index.whatever Link to comment https://forums.phpfreaks.com/topic/182487-test-is-sites-are-up-or-not/#findComment-963129 Share on other sites More sharing options...
jasonc Posted November 22, 2009 Author Share Posted November 22, 2009 curl is not available on my server, i do not own it, how else can i do this using PHP ? Link to comment https://forums.phpfreaks.com/topic/182487-test-is-sites-are-up-or-not/#findComment-963133 Share on other sites More sharing options...
rajivgonsalves Posted November 22, 2009 Share Posted November 22, 2009 use the php get_headers() function Link to comment https://forums.phpfreaks.com/topic/182487-test-is-sites-are-up-or-not/#findComment-963136 Share on other sites More sharing options...
jasonc Posted November 22, 2009 Author Share Posted November 22, 2009 great that the ticket... get_headers() works for me thanks for your help today Link to comment https://forums.phpfreaks.com/topic/182487-test-is-sites-are-up-or-not/#findComment-963141 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.