Re: !!!File porblems!!!
| From: | Robert J Sherman | Date: | Sat, 21 Jul 2001 15:22:40 +0000 |
| Subject: | Re: !!!File porblems!!! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8430@lists.php.net to get a copy of this message | ||
Well, it looks like you're trying to add the value of $zeile to '<br>',
which is going to
give you a "0" or null return.
try .. echo $zeile."<br>";
and see if that doesn't solve your problem.
"Php News" <cheaterjs@gmx.de> wrote in message
news:20010721095703.70220.qmail@pb1.pair.com...
> My code:
> $Newsfile = fopen("News.txt","r");
> while (!feof($Newsfile)) {
> $zeile = fgets($Newsfile,1000);
> echo $zeile+'<br>';
> }
> fclose($Newsfile);
>
> In the file is:
> Testfile!!!!!
>
> But I get a output:
> 0
>
> Why??
> Can someone help me???
> Please mail me at CHEATERJS@GMX.DE!!!
>
> GreeZ,
> JSTHEMASTER!
>
>
>
>