Created
December 30, 2009 00:59
-
-
Save davidphasson/265767 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$target = "files/"; | |
$target = $target . basename( $_FILES['uploaded']['name']) ; | |
$ok=1; | |
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) | |
{ | |
echo "The file ". basename( $_FILES['uploaded']['name']). " has been uploaded "; | |
$secs = time() - $_SERVER['REQUEST_TIME']; | |
echo "in a total of $secs seconds."; | |
} | |
else { | |
echo "Sorry, there was a problem uploading your file."; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment