PDA

View Full Version : A suggestion and a smalish problem....



tucker_adelaide
04-21-2005, 07:13 AM
I am very pleased with this script, its the only one I know of around that is realy easy to set up and configure / customise so easily. Well done on the scripting here.:lol:

I do have one suggestion though. Geo Ip would be very handy. There are many times when I go into the detailed visitors address and would love to know where the people are coming from. The only way I have found to do it so far is to manually to a trace route on every address, which can be realy time consuming and painfull. Geo IP (Geo IP Downloads) (http://www.maxmind.com/download/geoip/database/)) would be realy very usefull. You could use the flags that are on this site to incoporate it in your scripts. I currently have a cron job getting the updated information every day so it would be good to get that from an absolute address too when the script access's the file. There would be more than one application using this file to get information from it.

Another thing would be handy would be to have a range of IP's to not have the counter add up on the stats. For example you don't realy want the addresses 192.168.0.0 to 192.168.0.255 being used. You could tackle it two ways. Use the array and have a range from and to and have the progam process the numbers each time, or you could use CIDR (192.168.0/24) to do the same thing.

I think these improvements would make the program so much better and far more easier to customise and get some realy good information from.

Patrick
04-21-2005, 05:18 PM
Both of these are excellent suggestions.

The current version of the counter is relatively old (almost a year old I think) and I haven't worked much on it for ages until recently.

The major problem with the statistics portion of the script is that the original code of that file was initially not intended to be publicly released. As a result, the code is even worse of than the coutner code itself (which I believe is lacking, but functional), and therefore makes the stats near impossible to easily update.

The nice thing about the counter is that it is established and, out of the thousands of websites that use it, I have not had any bug reports. This of course makes me a little cautious to release a new version.

I think I am going to release a new version but under a different name. I have been rewriting the script to be object oriented (while the current version is object oriented, it doesn't adhere to common OO practice). In doing so, I plan to make available the ability for the counter to accept modules for reporting statistics as opposed to the statistics being displayed by the core of the script.

I will be sure to include the features you mentioned.

tucker_adelaide
04-23-2005, 07:49 AM
Kewl, when do you think the new version will be appearing?

Oh BTW I have noticed a bug, I don't know if anyone else had said anything about it. But when it asks you to put the images in, you have to put the full parent working directory of the files in for the script to even work. When you put the images in you have to crate all those directories under the directory you put the scrip under.

ie the PWD is /samba/www/html/counter

you need to put the pictures in /sambq/www/html/counter/samba/www/html/counter/images . I think something in the engine there is a miss.

Patrick
04-23-2005, 11:32 AM
Most of the people who use the counter use it in a relative aspect, so the image thing isn't a problem.

Although I haven't ever heard that one before. I think I handled the absolute path & image path in some strange way.


As I said, it needs a rewrite (and I am currently working on one).

tucker_adelaide
04-23-2005, 11:35 AM
When can we expect to see somethnig of this master piece?

lol :ph34r:

Patrick
04-23-2005, 07:12 PM
Hopefully sometime soon.

I get busy with scripts, programs, hosting, and other things that give me less time these days. I usually work on scripts when I am bored or have the time.