sure does, when not behind a protected directory:
$size = getimagesize("http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?act=view&iid=".$row["image_id"]);
works just fine.. but when within a protected directory, the proper authentication isnt sent correctly... this is wher curl would come into play but i havent gotten that to work yet
this:
function remote_filesize ($url, $user='web', $pass='user') {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_NOBODY, 1);
if (!empty($user) && !empty($pw))
{
curl_setopt($ch, CURLOPT_USERPWD, "$user.':'.$pw");
}
$okay = curl_exec($ch);
curl_close($ch);
return getimagesize($url);
}
$size = remote_filesize("http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?act=view&iid=".$row["image_id"]);
still returns authentication errors