Upload Help

Discussion in 'PHP' started by baddot, Jan 17, 2007.

  1. #1
    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:
     
    baddot, Jan 17, 2007 IP
  2. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    rays, Jan 17, 2007 IP
  3. baddot

    baddot Active Member

    Messages:
    309
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    hmm but i have the same error
     
    baddot, Jan 20, 2007 IP