HTML PHP GD
関連タイピング
-
プレイ回数298英語長文258打
-
プレイ回数9619長文956打
-
プレイ回数2718英語長文721打
-
プレイ回数2589英語54打
-
プレイ回数373英語長文285打
-
プレイ回数2372歌詞かな1345打
-
プレイ回数5484短文英字50打
-
プレイ回数247英語230打
問題文
(<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