getimagesize and https

后端 未结 3 1805
南方客
南方客 2021-01-19 21:58

I am retrieving facebook album images from facebook.I have calculating the image size using the php function getimagesize.This function is working fine when the url is in ht

3条回答
  •  渐次进展
    2021-01-19 22:29

    I tested this and it worked fine.

    $url = "https://path/to/image.jpg";
    $url = str_replace("https://", "http://", $url);
    $size = getimagesize($url);
    

提交回复
热议问题