HTML PHP GD

背景
投稿者投稿者パンサーfkいいね3お気に入り登録1
プレイ回数2239難易度(5.0) 732打 長文
タグphp html GD

関連タイピング

問題文

ふりがな非表示 ふりがな表示

(<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