Re: Snarl, hiss, growl (frustration)
| From: | Rasmus Lerdorf | Date: | Fri, 04 Jul 2003 19:06:46 +0000 |
| Subject: | Re: Snarl, hiss, growl (frustration) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154021@lists.php.net to get a copy of this message | ||
On Fri, 4 Jul 2003, Robert Cummings wrote:
> Undoubtedly the above will work as we both know, the output will be
> "123"; however, if you look at the original code in question, there is
> no "\n" tailing the output written to the counter file and thus the
> increment works fine (unless of course when he created the file to begin
> he had a newline - something I did not do in my test :)
which is exactly what it looked like he did since he said that switching
to $counter+=1; fixed it for him which would force it to be an integer.
-Rasmus