I'm working on a site for a client which will include frequent uploading of large video files (some likely over a gig). I'd like to be able to set it up so that, when a user uploads a video, they don't have to sit their waiting for 20 minutes or whatever for the file to get uploaded. I've noticed on YouTube that if you upload a video it only takes a few seconds for it to handle the file, then move onto the next page. Of course, I know they're not uploading the video in a few seconds. I assume they're getting just the necessary data or temporarily storing the data or something which allows them to upload the video later.
So, my question is is there anyway you can think of in PHP to do this?
Any thoughts would be much appreciated.
Is it possible to do a delayed upload in PHP?
Moderator: General Moderators
-
lonelycastle
- Forum Newbie
- Posts: 5
- Joined: Sun Sep 14, 2008 4:33 pm
Re: Is it possible to do a delayed upload in PHP?
Here are two pieces of the puzzle.
- Connection Handling -- to keep the script running
- header() -- to send a Location header to redirect the browser