Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $img = $_GET['img'];
- $img2 = md5($img).'.jpg';
- $image = imagecreatetruecolor(214,300);
- $image = imagecreatefromjpeg($img);
- Header('Content-Type: image/jpeg');
- imagejpeg($image,"/home/site/public_html/imgs/$img2",100); // pasta imgs ta com chmod 777
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement