Re: line breaks
| From: | Rodney Green | Date: | Tue, 25 Nov 2003 14:28:50 +0000 |
| Subject: | Re: line breaks | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170886@lists.php.net to get a copy of this message | ||
John Nichel wrote:
Chances are, $buffer has the line break on it when you read it in from the text file. Try striping off whitespace before you write...
while (!feof ($handle)) {
$buffer = rtrim ( fgets($handle, 1000) );
fwrite ($fhandle, "chown $buffer:html
http://www.php.net/manual/en/function.rtrim.php
Thanks John! That was the problem.
Rod