Can .htaccess do this?

Hello,

I am attempting a work around for some of the scripts that I have and basically is .htaccess able to

1) Generate a log file of what files have been requested when someone enters that folder
2) Then give vales or print the file name in that "log" file

then could a php script

1) look into that log file
2) get the sizes of the files
3) add them up
4) access a SQL datable to a specific table and locate the ID associated to the log file
5) write to a column where taking the original value and then adding the current
6) After that prune the log file.

I can't seem to find the coding for .htaccess to produce the file and log each file access... Can .htaccess do this?

Thanks for any advice.

 

 

 

 

Top