I have this image "Трислоен-паркет.png" and this to check if it exists:
$imgs='../images/pc/'.clear_string($categoryrow[1],$tr).'.png';
if(file_exists($imgs)){ echo 'yes';
}else echo 'no';
It always returns NO. The strange thing is that if I call the image without check if it is exists - it shows the image but I need to DO check and show that image if exists, otherwise I will show default image..but file_exists does wrong ..
clear_string function only removes white spaces and commas and some other type letters.. how to avoid it?