I tried that, however I still get a warning message.
Here is my code:
$filename = "http://www.website.com/user/images/$id/$pics[pic]";
$height = getimagesize($filename);
if (!$height)
{
$invalid = "yes";
$width=$height[0];
$height = $height[1];
}
I don't neccessarily want the application to do, later I have logic not to display the picture but an error message, however the warning still appears and I need to get rid of it. The warning is:
getimagesize(http://www.website.com/user/images/80/IMG_0107.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/website/public_html/profile/pro.php
Thanks for the help.