Atomg Posted May 25, 2006 Share Posted May 25, 2006 Hi all,I would like to make a php page. In that page, the php code would check if, let's say, 5 web pages are up or down. For example, sometimes when I access a web page and the host server of this webpage is not working (perhaps it is rebooting, or a bug, etc.), I have a error message.I have the php documentation but I don't know what to search in it for this kind of thing. If anyone could help me with that, or only give me some functions I could look up in the php manual, or an existing tutorial, etc. I would be very happy to.Thank you for your help.(edit) Could be a Javascript also (.js) But would like more a php if available.Example:IS OK - google.comNOT OK - ebay.caIS OK - yahoo.caIS OK - microsoft.caNOT OK - thottbot.com Link to comment https://forums.phpfreaks.com/topic/10468-check-status-of-a-web-page/ Share on other sites More sharing options...
trq Posted May 26, 2006 Share Posted May 26, 2006 Just try and open the file (url) via [a href=\"http://php.net/fopen\" target=\"_blank\"]fopen[/a](), if it succeeds the site is up, otherwise the site is down. Link to comment https://forums.phpfreaks.com/topic/10468-check-status-of-a-web-page/#findComment-39060 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.