You should not use it on a server that has a PHP cache/optimizer enabled. The fact that the data is stored in the actual PHP file will cause the cache/optimizer to keep reoptimizing and caching the file every time it is hit.... This will still work but On my server with the latest version of Turck mmcache it was casuing the cache to waste memory and eat a LOT of CPU. HTTP would spike to 99.9% CPU usage every time I hit the file a few times rapidly.
So I would reccomend a SEPERATE txt file to store the hit/click count. (its generally a bad Idea to have a self contained data/script file in any case)
Still a cool script though, just thought people should know that it can casue problems with cache/optimization software in its current state.
__________________
Amen
|