hasif
Account Closed
- Impact
- 0
This is a simple script that i have written, i made it as small as it is possible, have look, you can upload files through this scripts.
Code:
<!-- This is your HTML upload form -->
<form enctype="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="2048000">
File: <input name="userfile" type="file" /><br />
<input type="submit" value="Upload" />
</form> <BR>
<a href="http://www.masterzone.net.tf">(MZN) Master Zone Networks</a>
<!-- HTML Form end -->
<?php
// Change the directory name from "yourimage_directory" to your directory
// where you would like to keep your files after upload.
if (@is_uploaded_file($_FILES["userfile"]["tmp_name"])) {
copy($_FILES["userfile"]["tmp_name"], "$/yourimage_directory/" . $_FILES["userfile"]["name"]);
echo "<p>File uploaded successfully.</p>"; // You can change this message to fit as you want.
}
// *********************************
// Original Writer- Hasif Ahmed
// Contact- [email protected]
// Wesbite- http://www.masterzone.net.tf
// *********************************
// Any Bugs found email us.
// That's All !
?>
Last edited:








