Re: Sub Newbie Question On Error Message
| From: | Toby Butzon | Date: | Wed, 17 Jan 2001 23:36:05 +0000 |
| Subject: | Re: Sub Newbie Question On Error Message | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35210@lists.php.net to get a copy of this message | ||
Take a look at the changes I made to your original post; this assumes that
the file isn't there until results are posted - hope that's the case ;)
--Toby
> <?
if ($file = fopen("http://www.ourheadoffice.co.nz/results/race01.html",
"r")) {
> $rf = fread($file, 200000);
> $grab = eregi("<tr bgcolor=\"#CCFF99\">(.*)</html>", $rf,
> $printing);
> fclose($file);
> echo "<table><tr>";
> echo $printing[1];
} else {
echo "Results will be available after the event.";
}
> ?>