Can anyone tell me why my this script always wont work when i upload wmv files and when i upload small files it can work ? hmmm if ($isupload==yes){ if(isset($_FILES['file']['tmp_name']) && is_uploaded_file($_FILES['file']['tmp_name'])) { $ff = "/home/keeptouch/public_html/video/video_up/".$_FILES['file']['tmp_name']); //$config[vdodir]."/".$vdoname; if(move_uploaded_file($_FILES['file']['tmp_name'], $ff)) { //$mov = new ffmpeg_movie($ff); //video_to_frame($ff,$vid,&$mov,$listch[0]); //$duration=$mov->getDuration(); //exec("ffmpeg -i ".$_FILES['file']['name']." -acodec mp3 -ar 22050 -ab 32 -f flv video_up/" . $_FILES['file']['name'] . ".flv"); exec("ffmpeg -i -acodec mp3 -ar 22050 -ab 32 -f flv $config[flvdodir]/".$vid.".flv"); } } } ?> <form action="index.php?isupload=yes" method="post" enctype="multipart/form-data"> <p>File Upload</p> <label for="file">File</label> <input type="file" name="file"/> <br /> <input type="submit" name="submit" value="Submit" /> </form> PHP:
There can be limit for file upload size, please check php.ini for more details you can get more details on http://in.php.net/features.file-upload