title: php file upload and virus scan and save to ftp
body: <p>I am trying to upload a file via HTTP and run it through a virus scan and immediately move to a ftp location. Here are the basic steps,</p>
  
  <ol>
  <li>Upload via HTTP</li>
  <li>Do the virus scan on the php tmp directory (upload_tmp_dir) using php command line functions.</li>
  <li>Move the file directly to ftp from the tmp directory after the virus check.</li>
  </ol>
  
  <p>You might notice I am not doing a move_upload_file(), is this the best way to do it ? Or should I do steps 2 &amp; 3 after I do a move_upload_file(). </p>
  
  <p>If I should not do it before move_upload_file() then what would be the reason ?</p>
  
  <p>Thanks</p>