Your problem is here:
echo $zeile+'';
To echo two or more strings or variables you need to use a dot,
or a comma, like this:
echo $zeile.'';
or simply put it all together in double quotes:
echo "$zeile";
Svemir Brkic
www.baltok.com
Delivering Your Vision to the World Wide Web
--
PHP Wind
Well, it looks like you're trying to add the value of $zeile to '',
which is going to
give you a "0" or null return.
try .. echo $zeile."";
and see if that doesn't solve your problem.
"Php News" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My code:
> $New
php-windows Digest 21 Jul 2001 09:57:04 - Issue 662
Topics (messages 8421 through 8429):
Re: [PHP-DB] 'ORA-12203: TNS:unable to connect to destination' error
8421 by: Rouvas Stathis
problems with fwrite
8422 by: Hugo Alexandre A. S. Dias
oracle
8423 by: Marisol Día
My code:
$Newsfile = fopen("News.txt","r");
while (!feof($Newsfile)) {
$zeile = fgets($Newsfile,1000);
echo $zeile+'';
}
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!
--
PHP W