i have a worning massege only on localhost…
“Warning: getimagesize(images/cat/)
[function.getimagesize]: failed to
open stream: No such file or directory
in
C:\xampp\htdocs\gifts\libraries\leftmenu.php
on line 104”
while($cat=mysql_fetch_object($cats))
{
$maincatname = str_replace("&","--",$cat->name);
$image=$cat->image;
$catid=$cat->categoryID;
$image_upload_path = "images/cat/";
$url = $image_upload_path.$cat->image;
$www = getimagesize($url);
if (getimagesize($url))
{
$www = getimagesize($url); //echo print_r($www). "<br>";
$width=$www[0]; //echo $width."...<br>";
if ($www[0] > 120)
{
$www = "181";
}
}
Display the value of $url using
echo $urldirectly ablove the first getimagesize($url) and confirm if the image exist on your local server.