Re: [PHP] Simple fwrite question

2003-12-23 Thread CPT John W. Holmes
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

[PHP] Simple fwrite question

2003-12-23 Thread Hartley, Matt
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)); /* { */