echo a message while a file is uploading
<p>I want to echo a message reading "file uploading" while the file is uploading but the message is only being echoed after it has finished uploading, is there another way of dong this?</p>

<pre><code>if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))

  {
     echo "file uploading";
     header("location:somewhere.php?uploaded")
  } 

else echo "oops!";
</code></pre>
