Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- /*
- + Title : simple upload code (Based on width & height)
- | Author : Mr_AnarShi-T
- | y1-@live.fr
- + GaZa-HackeR.NeT
- # exit
- */
- echo '<from method="POST" enctype="multipart/from-data" action="">
- Picture: <input type="file" name"picture">
- <input type="submit" name="1" value="Upload">
- </from>';
- if($_POST['1'] == 'Upload'){
- $size = getimagesize($_FILES ['picture'] ['tmp_name]);
- $width = $size[0];
- $height = $size[1];
- if(isset($width) && isset($height)){
- $Upload = copy($FILES['picture'] ['tmp_name'], $FILES['picture'] ['name']);
- echo ($Upload) ? "OK":"picture size not found";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement