什么用网络url结尾判断是不靠谱的,有的图片没有结尾 比如http://baidu.com/img/222222 准确:exif_imagetype 准确:getimagesize 伪造的图片也不行 不准确:pathinfo 准确:get_headers 此函数下载之前读取图片流传送的头信息。 $url = "https://cdn.shopify.com/s/files/1/0070/7032/files/7-group-boards.png?v=1524583934"; //heade More