Here is a small example, but I do not take care of the content whih is returned by PHP script. It tries only whether the PHP file is accessable.
You have to install some PERL packages HTTP, LWP and few others. I can send you whole list of them.
Zdenek
require HTTP::Request;
require LWP::UserAgent;
$request = HTTP::Request->new(GET=>'http://192.168.1.100/iExpress/processor.php'
);
$ua = LWP::UserAgent->new;
$response = $ua->request($request);
if ($response->is_success) {
} else {
if ( -e '/tmp/httpd.down' ) {
} else {
$req = HTTP::Request->new(POST => 'mailto:zhabala@telecom.cz');
$req->header(Subject => "\@Fast error");
$req->content($response->as_string);
$res = $ua->request($req);
open(OUTPUT,">/tmp/httpd.down") or die "Nemohu otevrit vystup";
print(OUTPUT "Down");
close(OUTPUT);
}
};