Jump to content

Check status of a web page


Atomg

Recommended Posts

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.com
NOT OK - ebay.ca
IS OK - yahoo.ca
IS OK - microsoft.ca
NOT OK - thottbot.com
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.