【发布时间】:2011-01-26 16:37:26
【问题描述】:
我在 PHP 中使用 getimagesize() 函数,它一直返回错误:
getimagesize(image.php?name=username&pic=picture) [function.getimagesize]:打开流失败:没有这样的文件或目录
我没有用它做任何奇怪的事情。我能想象的唯一问题是路径 URL 是另一个 PHP 脚本,它返回带有图像标题的页面,并且该 URL 中有一个&符号。
这是我的代码:
$location = "image.php?name=username&pic=picture";
$size = getimagesize($location);
【问题讨论】:
-
哦,来吧,必须有人知道这个
-
你在 8 分钟前问过它。冷静。
标签: php image getimagesize