Home > php教程 > php手册 > body text

php 获取flash的尺寸信息实例

WBOY
Release: 2016-05-25 16:44:29
Original
865 people have browsed it

可能有些朋友不知道getimagesize函数不但可以获取图片文件的信息,同时还可以获取如GIF,JPG,PNG,SWF,SWC,PSD,TIFF,BMP,IFF,JP2,JPX,JB2,JPC,XBM 或 WBMP 图像文件的大小并返回图像的尺寸以及文件类型.

PHP实例代码如下:

print_r(getimagesize('http://www.phprm.com/logo.jpg')); 
/* 
输出的结果为: 
Array 
( 
[0] => 550 
[1] => 190 
[2] => 3 
[3] => width="550" height="190" 
[bits] => 8 
[mime] => image/png 
) 
*/
Copy after login

  


文章网址:

随意转载^^但请附上教程地址。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!