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
Search found 4 matches
- Mon Jul 18, 2005 7:39 am
- Forum: PHP - Code
- Topic: php counter, file writing problem.
- Replies: 6
- Views: 657
- 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
with
looks weird btw.
I'm gonna have a look at your code too. thanks a lot, you saved me.
Code: Select all
$cnt++;Code: Select all
$cnt=$cnt+1;I'm gonna have a look at your code too. thanks a lot, you saved me.
- Mon Jul 18, 2005 6:43 am
- Forum: PHP - Code
- Topic: php counter, file writing problem.
- Replies: 6
- Views: 657
- 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...