From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.0.6
PHP Bug Type:     Unknown/Other Function
Bug description:  nl2br -- Converts newlines to HTML line breaks

<?
$test = fopen("test1.txt", "r") or die("unable to open file");
 while (!feof($test))
 {
 $line = fgets($test, 1024);
 $line = nl2br($line);
 print $line; 
 } 
?>
contents of file test1.txt:
test
test
test

In HTML:
test<br />
test<br />
test<br />

That is to say <br /> instead of <br>

-- 
Edit bug report at: http://bugs.php.net/?id=12762&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to