Time limited file download upon form submit

a simple way would be to set a cookie with a timestamp when they submit the form, then check for the cookie and valid timestamp when they hit the url to download the file. a more complicated process would be to generate a unique url key for each user, put that in a db table … Read more

Get names and paths from unzip_file()

If i where you i would read the folder where the zip a $path=”/path/to/extract”; $file=”/path/to/zip.zip”; unzip_file( $file, $path ); $files = scandir($path); $files = array_diff(scandir($path), array(‘.’, ‘..’)); // removes empty spots from the array and then do what you want with the files. File names are in the $files array. foreach ($files as $key => … Read more