Is uploading via PHP usually much slower than conventional upload methods?
set_time_limit(3600);
$path = "./uploads/$upid";
$max_size = 150000000;
if (!isset($HTTP_POST_FILES['userfile']))
{echo
"
//blah blah html stuff
";};
if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
if ($HTTP_POST_FILES['userfile']['size']>$max_size) { echo "The file is too big<br>\n"; exit; }
if (file_exists($path . $HTTP_POST_FILES['userfile']['name'])) { echo "<center><font class=\"a14b\">The file already exists</font></center><br>\n"; exit; }
$res = copy($HTTP_POST_FILES['userfile']['tmp_name'], $path .
$HTTP_POST_FILES['userfile']['name']);
if (!$res) { echo "upload failed!<br>\n"; exit; } else { }
}