|
Posted by gosha bine on 05/08/07 12:46
jerryyang_la1@yahoo.com wrote:
> Many Thanks for the replies.
>
> I'm new to this so am not sure how to proceed.
>
> Any help you give is gratefully received.
>
> Thanks
>
Well, something along the lines of
$content = @file_get_contents('http://blah.com');
if($content === false)
$error = 'address not found or dns error';
if(preg_match('/connection error/', $content))
$error = 'connection error';
if($error)
mail('me@blah', 'alarm!', $error);
look for file_get_contents, preg_match, mail in php manual
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|