Re: sript dosen't echo on browser
| From: | David Robley | Date: | Tue, 29 Apr 2003 03:36:15 +0000 |
| Subject: | Re: sript dosen't echo on browser | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145584@lists.php.net to get a copy of this message | ||
In article <1051557495.3059.90.camel@ambekar>, ambekar@innomedia.soft.net
says...
>
>
> 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.
There don't appear to be any <TABLE></TABLE> tags in there. Do a View
Source and you will probably see your output, but it is probably not being
rendered by the browser because of the missing tags.
--
Quod subigo farinam
$email =~ s/oz$/au/o;