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 (69)
- file upload using php (41)
- simple file upload in php (23)
- simple php file upload script (23)
- php file upload script (17)
- simple file upload php (14)
- php simple file upload (11)
- simple upload script (9)
- php upload file script (9)
- easy file upload script (9)
- simple php upload script (8)
- Simple File Upload (8)
- file upload script (7)
- php simple file upload script (7)
- php pdf file upload script (6)
- file upload script in php (6)
- simple file upload script php (5)
- simple file upload php script (5)
- upload file script (5)
- flash factory los angeles web design (5)
- php upload script (5)
- simple file uploading script (4)
- upload file using php (4)
- how to upload file using php (4)
- html mail with file uploading and image uploading in php (3)
- upload file script with php (3)
- file upload using php code (3)
- simple file upload php form (3)
- php file upload simple script (3)
- simple file uploader (2)
- file uploader script (2)
- <File name=robots html size=13/> (2)
- php simple upload script (2)
- simple file uploader script (2)
- simple file uploader phps cript (2)
- how to upload a file using php (2)
- pageflip4 setup (2)
- simple script problems in php (2)
- jquery simple file upload (2)
- simple upload file php script (2)
You will also be interested in ,
- JAVA Simple Tutorial Part-I
- How to install XAMPP
- Get IP address using gethostbyname() function
- Recuva best file recovery software
- Arrays In PHP
- PHP E-mail with attachment
- Url rewriting examples using .htaccess
- Simple Javascript Slideshow
- Simple PHP Login Script
- Store Data In Remote DataBase Using cUrl or Execute a HTTP POST Using PHP CURL

Woow cool script
good one for script uopload