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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to