How can I use getimagesize() with $_FILES['']?

后端 未结 4 1382
清歌不尽
清歌不尽 2021-02-14 11:17

I am doing an image upload handler and I would like it to detect the dimensions of the image that\'s been uploaded by the user.

So I start with:

if (isse         


        
4条回答
  •  长发绾君心
    2021-02-14 11:49

    from php manual very simple example.

    list($width, $height, $type, $attr) = getimagesize("img/flag.jpg");
    echo "\"getimagesize()";
    

提交回复
热议问题