Posts by user6744 • 11 points
1 post
-
1
votes3
answers5038
viewsA: Upload Images with PHP - Mysql
public function uploadImage($tmp, $nome, $width, $pasta) { $ext = strtolower(substr($nome, -3)); switch ($ext){ case 'jpg' : $img = imagecreatefromjpeg($tmp);break; case 'jpeg' :…