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]
[PHP] Searching HTML file for tags
Tyler Longren
Thu, 08 Feb 2001 17:59:18 -0800
- Re: [PHP] Searching HTML file for <tr> tags Tyler Longren
- Re: [PHP] Searching HTML file for <tr> tags Mukul Sabharwal
- RE: [PHP] Searching HTML file for <tr> tags Tyler Longren
Reply via email to
Tyler Longren Thu, 08 Feb 2001 17:59:18 -0800
- Re: [PHP] Searching HTML file for <tr> tags Tyler Longren
- Re: [PHP] Searching HTML file for <tr> tags Mukul Sabharwal
- RE: [PHP] Searching HTML file for <tr> tags Tyler Longren