areeb Posted March 24, 2006 Share Posted March 24, 2006 Hello all ..Is there any PHP Script available, which can be used to monitor whether the Website Server is Uptime or it is Down ...Whenever it is down, we get an email :)Any help ???Regards:Areeb Qaisarwww.areebonline.com Link to comment Share on other sites More sharing options...
calvin182 Posted March 25, 2006 Share Posted March 25, 2006 sounds like it'd be a chron job. if you could figure out how to do a chron job to run like once every hour or whatever frequency you want, im sure it would be easy to do. on my site, i have it set up where if my mysql database is down, a special message appears. all you would really have to do is have the script try include a file with a variable like $online = "yes"; and back in the main script, if that value returned isn't "yes" (like when an error occurs), then it runs a mail function (which is easy to set up).thinking about this now, it wouldnt work anyways unless this chron job was on a different server, bc if your server went down, it wouldnt be able to run anything which means it couldnt even check and send you the email. Link to comment Share on other sites More sharing options...
DeathRay2K Posted March 25, 2006 Share Posted March 25, 2006 Sure its possible, if it recorded the time, it would be able to see if there is any 'missing' time, and that would tell you that it was down during that time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now