Here i will explain a simple php script which will upload files to a particular directory specified
< ?php
session_start();
if(!isset($_POST['upload'])) {
echo '
<form name="upload" enctype="multipart/form-data" method="POST" action="'.$_SERVER['REQUEST_URI'].'">
<input type="file" name="file" size="13? value=""/>
<br /><input type="submit" name="upload" value="Upload"/>
';
} else {
$yourdomain = 'http://localhost/';
$uploaddir = 'uploads/';
$filename = $_FILES['file']['name'];
$filesize = $_FILES['file']['size'];
$tmpname_file = $_FILES['file']['tmp_name'];
if($filesize > '1000000') {
echo "Way too big!!";
} else {
move_uploaded_file($tmpname_file, "$uploaddir$filename");
echo "Successful.<br /><b>URL: </b>".$yourdomain.$uploaddir.$filename."";
}
}
?>
Incoming search terms:
- Simple File Upload script (80)
- file upload using php (46)
- simple file upload in php (38)
- simple php file upload script (26)
- simple file upload php (22)
- php file upload script (18)
- simple upload script (11)
- php simple file upload (11)
- easy file upload script (9)
- php upload file script (9)
- simple php upload script (9)
- Simple File Upload (8)
- php simple file upload script (8)
- file upload script (7)
- simple file upload script php (7)
- php pdf file upload script (7)
- php upload script (6)
- upload file script (6)
- simple file upload php script (6)
- file upload script in php (6)
- flash factory los angeles web design (5)
- upload file using php (5)
- inurl upload php (4)
- simple file uploading script (4)
- how to upload file using php (4)
- simple file upload php form (3)
- simple file uploader script (3)
- php file upload simple script (3)
- file upload using php code (3)
- simple file upload script using php (3)
- upload file script with php (3)
- Simple PHP Scripts (2)
- file uploader script (2)
- simple javascript file upload (2)
- how to upload a file using php (2)
- simple php file upload (2)
- pageflip4 setup (2)
- php simple upload script (2)
- simple upload file php script (2)
- simple script file upload (2)
You will also be interested in ,
- Arrays In PHP
- Hit counter using php
- Calendar Script Using Javascript [Updated]
- Display Tags in wordpress
- Caching of web page using php
- Windows XP shortcuts for interner explorer, excel and powepoint
- .htaccess some facts and rules
- Get IP address using gethostbyname() function
- Appending string using php to a text file
- Redirect webpage using php


Woow cool script
good one for script uopload