【PHP】下らねぇ質問はここに書き込みやがれ 45
■ このスレッドは過去ログ倉庫に格納されています
0006nobodyさん
2007/04/27(金) 10:16:14ID:???http://up2.viploader.net/pic/src/viploader460273.png
以下ソース
<?php
header("Content-type: image/png");
$im = imagecreatetruecolor(400, 30);
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 399, 29, $white);
$text = '$_GET["img"]';
$font = 'micross.ttf';
imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
imagepng($im);
imagedestroy($im);
?>
$_GET["img"]にはGETメソッドでデータを送ります。
なぜでしょうか?
■ このスレッドは過去ログ倉庫に格納されています