I think Snib is suggesting using using the .txt file as a counter (the file that stores the number of hits a file has got).
Eg: To store the number of times someone plays snowball.ram, make a file called snowball.ram.txt which counts the number of times people play snowball.ram.
Just make sure you have an "allowed files" array, containing all the files that people are allowed to download otherwise people could do something like this: ...?file=/etc/passwd, which would create a file called /etc/passwd.txt. They wouldn't be able to *see* the /etc/passwd file, but they could make loads of annoying text files all over your filesystem (this is of course depending on what privileges php is running with - php would probably not be able to write in the .etc folder, it was just the first file that came to mind).
Cheers
--
Please contact me at:
Colin (dot) Horne (at) gmail (dot) com
|