Because the person I wrote this little thing for wanted it to be seperate so he can modify his getinfo() method without touching the add(). He doesnt always parse the same paremeter to the add() method. He added to his code so there are differences. For example, I have just $this->getinfo(); in here but he had a few extra methods inside the getinfo method to seperate pages and the counting.
Yes, this will generate a big file if you just keep it running, a better thing to do would be to only save the count for Unique hits in which it will avoid all the page views.
There are better hitcounters and such on the internet, I've messed with google analytics, it is pretty good I should say but not the best. Its got some downfalls, I currently use Mint from http://www.haveamint.com/, check them out they have an amazing tool for web tracking.
How about a simple code when someone PMs you, you are asked wether you want to accept their PM or Not? You get a notice of what they pmed you (the first line) and if you want to continue to talk to them /query
What I have is, when someone PMs me they automatically go under my PM Ignores unless they are in my PM exceptions. So if some random person PMed me they'd be ignored right away, I have to either PM them to start a conversation or put them in my exceptions.
if (@ARGV !=1)
@ARGV is a list, it will not work because you are comparing the array to an integer. The correct term you'd need is $#ARGV.
If ($#ARGV != 1) { do stuff }
($var) = @ARGV; you are distributing @ARGV into ($var), var is now a list therefore you cant use it this way: print "\n$var (MD5)" . " : " . md5_hex("$var")."\n"; you'd need to access the elements for example $var[0]