Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <title>Upload</title>
- <?php
- session_start();
- $target=$_POST['directory'];
- if($target[strlen($target)-1]!='/')
- $target=$target.'/';
- $count=0;
- foreach ($_FILES['file']['name'] as $filename)
- {
- $temp=$target;
- $tmp=$_FILES['file']['tmp_name'][$count];
- $count=$count + 1;
- $temp=$temp.basename($filename);
- move_uploaded_file($tmp,$temp)
- $temp='';
- $tmp='';
- }
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment