Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Easy Upload Files

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
.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
Close
well i had given enough information, which are needs to change, so now an unprofessional user can also use it easily. :)
 
0
Close
Confusing...
 
0
Close
Thanks mate. nice contribution
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back