hi, I am using PHP to code my image hosting project... And i want to know "how many times an image is downloaded?" cause we have to give our members a link like: -------------- http://.../imagename.jpg not like http://..../view.php?name=imagename.jpg ----------------- Now I can't calculate exactly how much bandwidth a member used, need your helps...
Where is your gallery? I think you would be able to do this with a mod_rewrite. So you would "serve" an image-23.jpg and your mod_rewrite would tranlsate this to view.php?image=23 (count and redirect) Just a simple example...
You could have something like .../img/username/imagename.jpg Where /img/ is a php script, /username/ is a variable, and imagename.jpg the filename/variable - so when requested, /img/ will knock up another download count against /username/'s imagename.jpg record. If that makes sense