url2bmp�Ȃǂ̃R�}���h���C������X�N���[���L���v�`�����s����c�[����PHP��g�ݍ��킹�ăX�N���[���L���v�`���T�[�o������Ă݂܂��B
��Windows�}�V����ł������삵�܂���B
�ȉ�2�̃t�@�C����ۑ����Ă��������B
�t�@�C���P-�쐬�t�H�[�� form.html�Ƃ��ĕۑ�
<form method="GET" action="out.php">
URL : <input type="text" name="url" size="60"><br>
�� : <input type="text" name="width" size="10"><br>
���� : <input type="text" name="height" size="10"><br>
�X�N���[���{�b�N�X�폜 : <input type="checkbox" name="removesb" value="1"><br>
<hr>
<input type="submit" value="�쐬">
</form>
<a href="//phpspot.net/php/">PHP�X�N���v�g by phpspot</a>
�t�@�C���Q-�摜�o�̓y�[�W out.php�Ƃ��ĕۑ�
<?php
$url = $_GET["url"];
$width = $_GET["width"];
$height= $_GET["height"];
$removesb=$_GET["removesb"];
$filename = "images/".md5($url).".png";
$opt = "";
if ($width != "") { $width = "-wx $width -bx $width"; }
else { $width = "-wx 1000 -bx 1000"; }
if ($height != "") { $height = "-wy $height -by $height"; }
else { $height = "-wy 1000 -by 1000"; }
if ($removesb != "") { $opt .= " -removesb"; }
if ($wait != "" && is_numeric($wait)) {
if ($wait < 0 || $wait > 10) {
$wait = 2;
}
$opt .= " -wait $wait";
}
//if (!file_exists($filename)) {
$cmd = "url2bmp -url $url -format png -notinteractive $width $height -file $filename $opt";
system($cmd);
print $cmd;
//}
echo <<<EOM
<img src=$filename>
<hr>
<a href="//phpspot.net/php/">PHP�X�N���v�g by phpspot</a>
EOM;
?>
�Q���t�@�C���ɕۑ���A
��������url2bmp���_�E�����[�h���āA2�̃t�@�C���Ɠ����ʒu��url2bmp.exe ��ݒu���܂��B(HTTP�T�[�o�̃p�X���ɒu���Ă�������)
�ȏ�ŏ��������B
http://�`/form.html �ɃA�N�Z�X���āA�t�q�k����͂��č쐬�{�^�������������ŃX�N���[���V���b�g����ʂɕ\������܂��B
�J�X�^�}�C�Y����Ō��J���\���Ǝv���܂��B
url2bmp�̃R�}���h���C���I�v�V�����ڍ�
�X�|���T�[�h�����N