Hello everybody,

Here's my code:

<?
$file = fopen("closings.html", "r");

if (!$file) {
        print "Error getting file";
}
else {
        print "Closings.html has been gotten<Br>";
        if (eregi("<tr><td>Stratford</td><td>Closed</td></tr>",$file)) {
                print "Stratford Closed";
        }
        else {
                print "Stratford Open";
        }
}
?>

The file closings.html has tables with weather related closings.  I want to
search closings.html for this line:
<tr><td>Stratford</td><td>Closed</td></tr>

If that line is found, it prints "Stratford Closed", if it finds that line,
it prints "Stratford Open".  I'm not sure that the file is even open all the
way.  Thanks everyone!

Regards,
Tyler


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to