I want to upload and store video files to my server using PHP. Could any one please provide me the code?
Please keep in mind that these files are generally larger than 200 MB.
I want to upload and store video files to my server using PHP. Could any one please provide me the code?
Please keep in mind that these files are generally larger than 200 MB.
Look at this move_uploaded_file, but if it's so big, it needs to be allowed in php.ini to upload this big files. And maybe you will have problem with Apache as well, because default time when it disconnects you is 5 minutes.
You will need to edit PHP.INI and change those two parameters:
upload_max_filesize = 500M
post_max_size = 500M
...for a maximum upload filesize of 500MB.
I think the question is fairly limited, is it the post size where there are problems? Uploading files of this size, really should be handled by something else than the normal upload control. You should see if you can give the user a progress on the upload, because otherwise users probably will cancel the upload if it takes too long.
First hit on google: Google search
If you have a properly set-up server you can put php.ini files into your htdocs root, and it will be effective.