=5200) { echo "\n Sorry, Not Moved Size below 5.2kb or 5200 bytes Only\n"; return; } $ext = end(explode('.', strtolower($_FILES['Filedata']['name']))); if(($ext=='doc')||($ext=='txt')||($ext=='doc')||($ext=='doc')) { } else { echo "\n Sorry, Not uplod. Only .doc/.txt file permissable\n"; return; } if(move_uploaded_file($_FILES['Filedata']['tmp_name'], "./".$_FILES['Filedata']['name'])) { echo "\nfile moved Success\n"; return; } ?>