Posted by Shane on 07/11/05 06:55
weird
I fixed the problem, but the fix has me even more stumped
I added a line for $counter to be hardcoded
which was then written to counter.txt
and the next time round it was read, but still not counting but it was
writing to counter.txt I then added $counter = $counter +1;
and suddenly my counter started counting upwards in values of 2 removed
the hardcoded value and the $counter = $counter +1; and it continued to
work
The _only_ thing I can think of is counter.txt value was being read as
a string and not an int?
--
Hardware, n.: The parts of a computer system that can be kicked
The best way to get the right answer on usenet is to post the wrong one.
Navigation:
[Reply to this message]
|