My site http://roflsearch.com has been up and running flawlessly for months. I haven’t touched the code for well over a month, and out of the blue I’m getting a php error. My webhost swears nothing has changed on their end, but I expected them to say that regardless…
Error Message:
Warning: getimagesize(http://roflsearch.com/rofl/4846.jpg) [function.getimagesize]: could not make seekable - http://roflsearch.com/rofl/4846.jpg in /home/zomgli5/public_html/roflsearch.com/index.php on line 142
The site displays random images, and the urls that are pulled pertaining to each image is saved on a database. The problem I’m having is that the bar above the image should be the width of the image, but for whatever reason the code i’m using just stopped working out of the blue.
<?php list($width, $height) = getimagesize($rows['url']);
if($width < 280)
echo “Click”;
else
echo “Click or Browse For Another Random Image”;
?>
It’s pretty straight forward, this code simply checks the width of the image and sets an equal width to the bar. If the width is less than 280px a shorter amount of text is visible. Like I said, there hasn’t been an issue since i first wrote this and out of the blue today i’m getting errors. All help is greatly appreciated. Many people use my site regularly so I would like to get it functioning properly for them ASAP. Thanks in advance.
Note: $rows is simply the variable I assigned to the query pulling the image url from the database