Created
February 27, 2012 05:22
-
-
Save zvineyard/1921651 to your computer and use it in GitHub Desktop.
PHP: Basic File Upload
This file contains 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 | |
print_r($_FILES); | |
$new_image_name = "namethisimage.jpg"; | |
move_uploaded_file($_FILES["file"]["tmp_name"], "/srv/www/upload/".$new_image_name); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment