OK.. so im understanding this better now.. thanks..
but..
<?php
ob_start();
?>
<?
function_IsOnline($host,$port)
{
$url_=_parse_url($host);
$fp_=_fsockopen_($url['host'],$port);
if_(!$fp){
mail('webmaster@server.ac.uk',_'Server',_'The Server Seems to be down.');
return false;
}
else{
return_TRUE;
fclose($socket);
}
function DispImage($host,$port){
if(IsOnline($host,$port)) {
header("location:$host");
} else{
header( "Location: http://www.server.ac.uk/status/serverdown.htm" );
}
}
?>
I get a parse error on line 7.
And I didn't get what you mean't by ignoring those underscores.. so I tried taking them out..(there back in now)
Many thanks for your help and patience..