easy ip counter class - problem


#1

Hey there, i got a problem :frowning:


#2

come on… plz try it. it is tiny code!


#3

Have you tried Debugging? Besides that, I see you using rand() a couple of times, if you say your problem is ‘sometimes it works, sometimes not’, then you could try echoing their values, tracing the problem back to where the bug is.