HTML PHP GD
関連タイピング
-
プレイ回数839英語長文543打
-
プレイ回数8332長文526打
-
プレイ回数33万1071打
-
プレイ回数2694英語54打
-
プレイ回数160英語長文364打
-
プレイ回数338英語長文258打
-
プレイ回数136英語長文308打
-
プレイ回数2819英語長文721打
問題文
(<form method=”post”enctype=”multipart/form-data”)
<form method="post" enctype="multipa
(action=””>)
action="self">
(<input type=”hidden”name=”max_file_size”value=”size”>)
MAX_FILE_SIZE
(<input type=”file”name=”userfile”>)
<input type="file" name="userfile">
(<input type=”submit”value=”send”></form>)
<input type="submit" value="">
($tmp_file=$_files[’userfile’][’tmp_name’];)
$_FILES['file']['tmp_name'];
(if(!is_uploaded_file($tmp_file)){exit;})
if (is_uploaded_file($_FILES['userfi
($finfo=finfo_open(fileinfo_mime_type);)
finfo_open(FILEINFO_MIME_TYPE);
($mime_type=finfo_file($finfo,$tmp_file);)
$type=finfo($finfo,$tmp_file);
(finfo_close($finfo);)
finfo_close($finfo);
(if($mime_type!=”image/jpeg”){exit;})
if($mime_type!="image/jpeg")
(move_uploaded_file($tmp_file,”./img/filename”);)
if (move_uploaded_file($_FILES['user
($img=imagecreatefromjpeg(”./img/filename”);)
$img=imagecreatefromjpeg("./img/$fi
(list($w,$h)=getimagesize(”./img/filename”);)
list($w,$h)=getimagesize("./img/file
($minw=300;$minh=$h/$w*300;)
$new-width; $new-height;
($min=imagecreatetruecolor($minw,$minh);)
$thumbimg=imagecreatetruecolor($new
(imagecopyresized($min,$img,0,0,0,0,$minw,$minh,$w,$h);)
imagecopyresized($min,$img,0,0,0,0,n
(imagejpeg($min,”./img/min/thumb_filename”);)
imagejpeg($min,"./img/min/thumb_file
(imagedestroy($min);imagedestroy($img);)
igamedestroy($min);imagedestroy($img