From: "Hartley, Matt" <[EMAIL PROTECTED]>
> I am trying to have a counter in a file. With what I have below I get in
> the $counterfile
>
> 0 + 01 = 01
> 01 + 01 = 012
> 012 + 01 = 01213
>
> [snip]
>
> /* Add "1" to the counter */
> $counter = ($counter + '01');
You're "adding" a string. T
I am trying to have a counter in a file. With what I have below I get in
the $counterfile
0 + 01 = 01
01 + 01 = 012
012 + 01 = 01213
[snip]
/* Add "1" to the counter */
$counter = ($counter + '01');
/* Verify counter file is writable */
if (is_writable($counterfile)); /* { */
2 matches
Mail list logo