我在ftp服务器上的文件夹中上传图像"上传"将它们显示在图库中 我希望所有图像都具有相同的大小,这里是我的php上传+显示代码,我该怎么做?
$dir = "uploads/";
$images = scandir($dir);
$ignore = Array(" . ", " . . ");
foreach ($images as $img)
if (!in_array($img, $ignore))
{
$fp = $dir . $img;
echo "<img class='galleryimg' src='$fp' />";
}