Wednesday, March 30, 2011
Tuesday, March 29, 2011
video file upload in php
its very easy to upload a video file use normal upload codngs
$uploaddir = 'uploads/';
$uploadfile = $uploaddir.basename($_FILES['uploadedfile']['name']);
if (move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$uploadfile)) {
echo "File is valid, and was successfully uploaded.\n";
}
else {
echo "File uploading failed.\n";
}
Choose a file to upload:
but not more then 2Mb... bcoz our upload_max_filesize is only 2mb
Tuesday, March 22, 2011
Sunday, March 13, 2011
Subscribe to:
Posts (Atom)