clear this doubt please...urgent
Moderator: General Moderators
-
sweetraskels
- Forum Newbie
- Posts: 3
- Joined: Sun Nov 12, 2006 11:22 pm
clear this doubt please...urgent
hi ..
how to find the status of a website to know if the website is live or if the website has failed.
the site is a PHP site that runs against a MySQL database. Each day, a backup routine runs to store this content on tape. Once in a while, this backup routine seems to shut down the MySQL service, but not restart the service. So the page fails.
is there a way to run a script on a local workstation that checks once an hour (or every 30 minutes) the content of a site to see if is properly rendering. If there is a problem, the script should generate an email to the project leader responsible for that project.
is there a way to do this..?
if so please tell me
how to find the status of a website to know if the website is live or if the website has failed.
the site is a PHP site that runs against a MySQL database. Each day, a backup routine runs to store this content on tape. Once in a while, this backup routine seems to shut down the MySQL service, but not restart the service. So the page fails.
is there a way to run a script on a local workstation that checks once an hour (or every 30 minutes) the content of a site to see if is properly rendering. If there is a problem, the script should generate an email to the project leader responsible for that project.
is there a way to do this..?
if so please tell me
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
simple.
To automate the process, consider searching for "cron tab", or "task scheduler"
Code: Select all
$file = @file_get_contents('http://php.net/');
if (!$file) {
mail = mail(...);
}- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
sweetraskels
- Forum Newbie
- Posts: 3
- Joined: Sun Nov 12, 2006 11:22 pm
am new
hi..
thanks for your help..
but u know am new to this php
i cnt get what is cron script or smething of tat sort
can you explain me in detail as how to do
and where to do
thanks for your help..
but u know am new to this php
i cnt get what is cron script or smething of tat sort
can you explain me in detail as how to do
and where to do
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
there are hundreds of tutorials out there
-
sweetraskels
- Forum Newbie
- Posts: 3
- Joined: Sun Nov 12, 2006 11:22 pm
urgent
hi am using Windows 2003 server
and not linux
now wat to do
and not linux
now wat to do
For windows server 2003 you can use the build-in task scheduler, too.
here is a small tutorial to start with:
http://www.iopus.com/guides/winscheduler.htm
here is a small tutorial to start with:
http://www.iopus.com/guides/winscheduler.htm