阅读背景:

使用php查找正在上传的文件的扩展名

来源:互联网 

I am using PHP for a website. I have to get users upload their pics. Now, the pics can be in jpeg or png or gif format. My problem is that i identify a user by a unique userid, so I want to save the pics as: userid.jpg or userid.png etc. Now, how do i find out the extension of the file selected by the user using php?I am using PHP for a website. I have to get use




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: