Re: Snarl, hiss, growl (frustration)
| From: | Kyle Babich | Date: | Fri, 04 Jul 2003 19:11:31 +0000 |
| Subject: | Re: Snarl, hiss, growl (frustration) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154022@lists.php.net to get a copy of this message | ||
FYI there were no newlines involved in my program. (go back to the
message and read the code)
On Fri, 4 Jul 2003 12:06:46 -0700 (PDT), "Rasmus Lerdorf"
<rasmus@lerdorf.com> said:
> 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
>
--
Kyle