时间:2021-07-01 10:21:17 帮助过:31人阅读
$url="http://www.google.com.hk/images/srpr/logo4w.png"; print_r(getimagesize($url));
输出的结果为:
Array ( [0] => 550 [1] => 190 [2] => 3 [3] => width="550" height="190" [bits] => 8 [mime] => image/png )
再来看一个获取flash文件尺寸的例子:
$url="http://tools.jb51.net/static/api/data/e69b9944a2ce0afc9890f85f10dbcfc3.swf"; print_r(getimagesize($url));
输出结果如下:
Array ( [0] => 540 [1] => 250 [2] => 13 [3] => width="540" height="250" [mime] => application/x-shockwave-flash )
以上就是php获取flash尺寸详细数据的方法 的内容,更多相关内容请关注PHP中文网(www.gxlcms.com)!