Skip to content

bloodynumen/xtype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xtype

获取文件类型的PHP扩展

install

编译

git clone https://github.com/bloodynumen/xtype.git
cd xtype
phpize
/configue --with-php-config=your_php_config_path
make && make install

配置php.ini

extension=xtype.so

使用

$ext = xtype('/tmp/1.jpg')
echo $ext;

可识别的文件类型

bmp
jpg
png
mpg
mpg
pst
rm
ram
psd
dwg
avi
gif
tif
mid
zip
rar
wav
mov
qdf
xls.or.doc
pwl
wpd
xml
html
rtf
pdf
asf
dbx
mdb

About

PHP extension to get the real type of file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published