使用php怎么获取flash尺寸的详细数据

这期内容当中小编将会给大家带来有关使用php怎么获取flash尺寸的详细数据,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

例如:

$url="https://cache..com/upload/information/20201209/266/39665.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尺寸的详细数据了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注行业资讯频道。