sript dosen't echo on browser
| From: | nitin ambekar | Date: | Mon, 28 Apr 2003 19:18:15 +0000 |
| Subject: | sript dosen't echo on browser | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145526@lists.php.net to get a copy of this message | ||
hi,
could any body help me out.
i have text file called dtopsong.txt
<|Date:16/4/2003>
<None><1><jina tere lie><7><16>
<None><1><ask><7><14>
.
.
<Date|>
<|Date:15/4/2003>
<None><1><sislsiala ye chahat ka><7><16>
<None><2><jina tere lie><7><16>
.
.
<Date|>
i wrote script called top10song.php
<?php
$handle=fopen("/var/www/html/innoproject/dtopsont.txt","r");
while ($line=fgets($handle)) {
if(preg_match("|<([^>])><([^>])><([^>])><([^>])><([^>])>|",$line,$m)){
echo"<tr><td>$m[1]</td><td>$m[2]</td><td>$m[3]</td><td>$m[4]</td>$m[5]</td></tr>\n";
}
}
this script does not echo any thing on browser.
in anticipation,
nitin