Check something, wait, check again, do something!


Posted on 16th Feb 2014 07:03 pm by admin

Hi guys.

I wonder if someone can help me with this.

Basically, what I want to do is (for arguments sake I will use google.com as an example) check to see if google.com is alive. If its alive, I want it to stop and exit. If its not, I want it to wait a defined amount of time (say 30 seconds) and then check again. If its up this time, I want it to exit, however, if tis still down, I want it to do something (ie send an email).

Any help would be much appriciated.
Thanks

No comments posted yet

Your Answer:

Login to answer
178 Like 41 Dislike
Previous forums Next forums
Other forums

links using header()
Hi All

I'm not sure where to ask for help on this but I hope someone can offer some. I'm at

Page doesn't expand for content
Hi. I've been testing a query I made. It's here http://lapr1.6te.net/inquerito.php
The page doesn

How to calculate days from variable date?
This will be easy for one of you gurus. I want to fetch the date from a variable date, for example:<

Can I use a loop
Hi buddies!

Once again with my doubts here.

Right now I am using this sql stat

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

Count on multidimensional array
Hi, i got an array as below:

Array
(
=> Array
(

Insert Failing.
Hey,
I am making a Sign up page for a website, but the insert query into the Database does not se

Credit card verification
I have a client who wants to process credit card transactions from his web site rather than the goin

how to read and write into a word document using php...?
hi,
I need,reading and writting into a word document using php.




Thank u inadva

Find only certain URLs from page ... regex (semi-complete script)
Hi guys,

What I need to do is take a page & extract all the URLs from the page &a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash