Search found 4 matches

by arrotino
Mon Jul 18, 2005 7:39 am
Forum: PHP - Code
Topic: php counter, file writing problem.
Replies: 6
Views: 657

I know they're the same, that's why I stated it was "weird".
edit: probably the "++" form cannot work with a char? I don't know. I'm just guessing
by arrotino
Mon Jul 18, 2005 7:08 am
Forum: PHP - Code
Topic: php counter, file writing problem.
Replies: 6
Views: 657

the code now works. I substituted

Code: Select all

$cnt++;
with

Code: Select all

$cnt=$cnt+1;
looks weird btw.

I'm gonna have a look at your code too. thanks a lot, you saved me. :D
by arrotino
Mon Jul 18, 2005 6:43 am
Forum: PHP - Code
Topic: php counter, file writing problem.
Replies: 6
Views: 657

thanks a lot, it now outputs correctly to the file. but the counter doesn't increase :(
I'll try to work on that now.
by arrotino
Mon Jul 18, 2005 6:17 am
Forum: PHP - Code
Topic: php counter, file writing problem.
Replies: 6
Views: 657

php counter, file writing problem.

Hi everyone. I'm new to PHP and was trying to implement a simple pageviews counter that increments pageviews if last IP that visited the page is different from current IP. (sorry for my bad english, I hope you got the idea). I thought I had to use a file to store pageviews and last IP. My code parti...