HTML PHP GD
関連タイピング
-
プレイ回数2402歌詞かな1345打
-
プレイ回数5922英語長文120秒
-
プレイ回数1950長文60秒
-
プレイ回数1.9万長文2819打
-
プレイ回数5327長文英字1629打
-
プレイ回数393英語長文285打
-
プレイ回数9014長文935打
-
プレイ回数1069長文英字693打
問題文
(<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