ZGStyle wrote:
Thanks, but this answer didn't solve my problem.
Ok, I'll try to describe the task:
I have to programm website, which have several links to zip files. When user clicks on link, at first he goes to page, that counts the number of downloads. Then php script have to redirect user to zip file and then back to link page. The count of file downloads must be updated.
Is it possible to solve this task at all?
Maybe there is a different solution?
Your friendly local server logs will be able to help you. Every time your web server sends a zip file, a line is added to the log file.
You can parse the log file to find out how many of which zips were downloaded, and at what time and to which IP address even .. if your server config is set up properly, it'll even tell you what operating system and browser they are using.
My config is customised to not log graphics for the sake of disc space, but if your config is stock standard it will log the zips.