Hi I think this is Troll question of Php-write downlaod time in zip file how it is possible like i uploaded this file myfile.zip when user 1 download this file @ 1:29 it will myfile-1:29.zip second user download @ 12:45 then it will myfile-12:45.zip so i hope you understand it ............. i need hint about this Thanks
Ok. here it goes. Keep track of the files in a separate table in the db. For example: tblFiles ------- file_id | original_filename | dynamic_filename Code (markup): So, when you upload the file, create a new record in that table with the filename as "original_filename" as well as "dynamic_filename". And later on, when user downloads the same file, update this record by changing the "dynamic_filename". The sample update statement would be like this: UPDATE tblFiles SET dynamic_filename = CONCAT(original_filename, '-' , DATE_FORMAT(NOW(), '%H:%i')) WHERE file_id = '123' Code (markup): So, when you list the filename to the user, just echo the "dynamic_filename" field. Reference links of mysql functions used: CONCAT() NOW() DATE_FORMAT() Hope it helps