Home > Backend Development > PHP Tutorial > php filesize函数的有关问题

php filesize函数的有关问题

WBOY
Release: 2016-06-13 13:09:25
Original
1103 people have browsed it

php filesize函数的问题
linux下为什么我上传到临时文件夹的文件使用filesize有时候能获取到,有时候就获取失败
不应该啊

------解决方案--------------------
你得先确认文件是存在的
------解决方案--------------------
是不发路径不对?弄错了
------解决方案--------------------
这个不可能,你有不有相应权限。不能获取时,文件大小是多少。
------解决方案--------------------
print_r($_FILES);
看一下就知道原因了

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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template