当我在作为共享服务器的托管公司中使用 getimagesize() 时,出现以下错误。
Message: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration
Filename: admin/admin_product_home.php
获取图像的图像大小的替代方法是什么?
提前致谢。
echo "<tr>\n";
echo "<td>".$list."</td>\n";
$filepath = base_url()."uploads/".$list;
echo "<td><img width=\"70px\" src='".$filepath."' /></td>";
echo "<td>";
$filesize = getimagesize($filepath);
echo "width: ".$filesize[0]. "px<br />";
echo "height: ".$filesize[1]. "px<br />";
echo "</td>";
echo "<td>";
...
...
正如您在 base_url() 中看到的那样,我正在使用 codeigniter。