php-windows Digest 22 Jul 2001 11:01:21 -0000 Issue 663
Topics (messages 8430 through 8432):
Re: !!!File porblems!!!
8430 by: Robert J Sherman
8431 by: Svemir
IMAP Administration API?
8432 by: Christopher Cheng
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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 [EMAIL PROTECTED]!!!
>
> GreeZ,
> JSTHEMASTER!
>
>
>
>
Your problem is here:
echo $zeile+'<br>';
To echo two or more strings or variables you need to use a dot,
or a comma, like this:
echo $zeile.'<br>';
or simply put it all together in double quotes:
echo "$zeile<br>";
Svemir Brkic
www.baltok.com
Delivering Your Vision to the World Wide Web
Is there any IMAP API or modules written in PHP?
I am looking for API to write a signup page for users.