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 (68)
- file upload using php (41)
- simple php file upload script (23)
- simple file upload in php (23)
- php file upload script (17)
- simple file upload php (14)
- php simple file upload (11)
- easy file upload script (9)
- php upload file script (9)
- simple upload script (8)
- Simple File Upload (8)
- simple php upload script (8)
- php simple file upload script (7)
- file upload script (7)
- file upload script in php (6)
- php pdf file upload script (6)
- simple file upload script php (5)
- upload file script (5)
- php upload script (5)
- flash factory los angeles web design (5)
- simple file upload php script (5)
- upload file using php (4)
- how to upload file using php (4)
- simple file uploading script (4)
- upload file script with php (3)
- html mail with file uploading and image uploading in php (3)
- simple file upload php form (3)
- php file upload simple script (3)
- file upload using php code (3)
- how to upload a file using php (2)
- upload file to server using php and jQuery (2)
- simple script problems in php (2)
- php simple upload script (2)
- simple file uploader script (2)
- simple file uploader phps cript (2)
- use php form sum column mysql (2)
- php simple file (2)
- jquery simple file upload (2)
- a simple file upload script (2)
- simple javascript file upload (2)
You will also be interested in ,
- How to install XAMPP
- Displaying or changing images each day
- Calendar Script Using Javascript [Updated]
- Caching of web page using php
- Appending string using php to a text file
- Windows XP shortcuts for interner explorer, excel and powepoint
- How to create random passwords using php
- Hit counter using php
- Simple PHP Login Script
- Find files inside a directory that starts with a specific string using php

Woow cool script
good one for script uopload