On Fri, 4 Jul 2003, Kyle Babich wrote: > FYI there were no newlines involved in my program. (go back to the > message and read the code)
How did you create the file in the first place? Most editors will automatically add a carriage return. Even if you had your code create it, if afterwards you ever edited and saved the file with an editor, you would have gotten one in there. The proof of this is that your code didn't work. If the file really only had a number in it, then $counter++ would have worked. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php