Hey there,
I have a webcam site, where people can post their images to my site (via php/postgresql)
Now when I display these remotly hosted images, they are not always online, when they are offline, I need to display a notonline.gif. Is there anyway to" time out" if it takes too long to check if an image is there?
With the below, It sometimes takes 1 to 2 min. to display 20 records.
Here's what I have done:
//snip
$image_info = @getimagesize("$poswebcamurl");
$type=$image_info[2];
if ($type == 0) { echo" <img width=90 height=75 border=1 src='notonline.gif' alt='click to view site'>";
}
else { echo" <img width=90 height=75 border=1 src='$poswebcamurl' alt='click to view web site'>";}
echo"</a>
//end of snip
Any help would be appreciated.
Thanks, Kevin (www.echowerks.net)