I want to get width and height of an images from url, but it doesn't work. it said
Warning: getimagesize(https://scontent-b-sin.xx.fbcdn.net/hphotos-xpa1/t1.0-9/156922_131613136994348_1325598195_n.jpg) [function.getimagesize]: failed to open stream: Invalid argument in D:\AppServ\www\test\test6.php on line 4
PHP
$url = "https://scontent-b-sin.xx.fbcdn.net/hphotos-xpa1/t1.0-9/156922_131613136994348_1325598195_n.jpg";
list($width, $height, $type, $attr) = getimagesize($url);
echo "Image width " . $width ."<br />";
echo "Image height " . $height ."<br />";
echo "Image type " . $type ."<br />";
echo "Attribute " . $attr ."<br />";
?>
Using path from my computer is work. what's happened? Thank you.