问答详情
源自:2-2 PHP文件上传案例实战之服务器端限制详解

getimagesize错误

$filename='002.jpg';
var_dump(getimagesize($filename));
?>

页面上错误:

( ! ) Warning: getimagesize(002.jpg) [function.getimagesize]: failed to open stream: No such file or directory in D:\PHP\Demo\project05\getimagesize.php on line 5

Call Stack

#

Time

Memory

Function

Location

1    0.0005    366224    {main}( )    ..\getimagesize.php:0    

2    0.0005    366360    getimagesize ( )    ..\getimagesize.php:5    

boolean false


提问者:慕粉4279450 2017-05-24 23:44

个回答

  • Joper
    2017-05-27 08:56:39

    兄弟  你大概是没有把002.jpg移动文件目录下 所以No such file or directory 意思是说找不到文件或者目标