Hi all,
At my website, users are able to log in, choose an external image (hosted by photobucket.com) and have it displayed on their user site.
However, there is a slight dilemma.
The code worked fine as:
$image_url=$row["v_image_url"];
if($image_url && $image_url != 'http://'){$image_size = getimagesize($image_url);}
However, when I do this and a user inputs a nonexistent picture as their picture URL, I get the following warning:
"Warning: getimagesize: Unable to open 'http://www.wasdfrosdfg.com/nonexistent.jpg' for reading. in /var/www/mysite/user_home1.php on line 22"
Should I use a file_exists function to check and see if the external image exists (I don't know if this is possible) or should I have the warning not be displayed (and how do I do that)?
Thanks a lot in advance!
-influx