Unstoppable Domains

Easy Upload Files

Spaceship Spaceship
Watch

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:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
You might need to explain some of it to people, like where to edit it, to make it upload the files to somewhere else, i.e uploads instead of images...

PJ
 
0
•••
.PJ said:
You might need to explain some of it to people, like where to edit it, to make it upload the files to somewhere else, i.e uploads instead of images...

PJ
put in comments in it.

PHP:
// comment

// OR

/* comment
    spread
    on
    many
    lines */
 
0
•••
well i had given enough information, which are needs to change, so now an unprofessional user can also use it easily. :)
 
0
•••
Confusing...
 
0
•••
Thanks mate. nice contribution
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back