checking ip & encoding
Posted: Tue May 22, 2007 6:46 am
to remind some:
i have a form for users to submit articles and want the articles be publicly viewable.
thanks for your helps in my other topics. now:
1. I want to record the ip from where the article is being submitted. How can I do that?
2. I'm counting the number of times each article is viewed. but need 2 things.
I don't want the counting work if the owner's articles is being read from an IP that he has already logged in. Why? because I pay the writers according to the number of times their articles has been read and don't want to pay them if they read their articles themselves.
3. The language I'm creating this cms for is not English. so I want the users to view the webpages in a unicode-utf8 encoding. (automatically) what should I do for that?
i have a form for users to submit articles and want the articles be publicly viewable.
thanks for your helps in my other topics. now:
1. I want to record the ip from where the article is being submitted. How can I do that?
2. I'm counting the number of times each article is viewed. but need 2 things.
I don't want the counting work if the owner's articles is being read from an IP that he has already logged in. Why? because I pay the writers according to the number of times their articles has been read and don't want to pay them if they read their articles themselves.
3. The language I'm creating this cms for is not English. so I want the users to view the webpages in a unicode-utf8 encoding. (automatically) what should I do for that?