Say I have a user upload a video to a temporary folder on my site.
How would I go about compressing that file automatically and saving in a folder specific to the month it was uploaded, and renaming it with a number that would be sequential (no two files with the same name). Then after it has been compressed and stored, when someone calls upon that file, having it auto-uncompress, and be shown on my site.
The user would probably call a file named: video.php, with a variable “?vid=#####.”
the number would tell the video.php file which video they want, and do the uncompression, and output the video as a video, not a php page (header(‘Content: video/whatever’)?.
All your help is appreciated! ?