Re: Sub Newbie Question On Error Message
| From: | Romulo Roberto Pereira | Date: | Wed, 17 Jan 2001 23:43:00 +0000 |
| Subject: | Re: Sub Newbie Question On Error Message | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35211@lists.php.net to get a copy of this message | ||
I think that the file is always there...It would not be easy to sabe the
current message in a text file and compare it with the new one that fopen is
bringing??
Rom
----- Original Message -----
From: Toby Butzon <php-lists@imawebdesigner.com>
To: Dave Stewart <dexter@ihug.co.nz>; PHP (General)
<php-general@lists.php.net>
Sent: Wednesday, January 17, 2001 6:36 PM
Subject: Re: [PHP] Sub Newbie Question On Error 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.";
}
> ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net