Sub Newbie Question On Error Message
| From: | Dave Stewart | Date: | Wed, 17 Jan 2001 23:30:58 +0000 |
| Subject: | Sub Newbie Question On Error Message | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35209@lists.php.net to get a copy of this message | ||
Hi,
We have installed PHP pretty much to do one thing, which is to get
data from our head office website and place it on our club site.
We need to have a message saying something like "The Results are not
available until after the event".
I can supress the error messages by adding @ before the functions but
that's the best this dork can manage at this early stage in his PHP
Programming career :-)
I know this must use if and else or something and I'd appreciate
someone untangling my newbie brain.
This is the code we are using now.
<?
$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];
?>
Thanks in advance.
Dave Stewart