I use special characters (swedish letters åäö).
Now, I have some folders, which contains images for classifieds. The folders are named by category.
for ($i=1; $i<=5; $i++){
if (file_exists($big_images.$i.'.jpg')){ echo "Inne";
unlink($big_images.$i.'.jpg');
}
if (file_exists($thumb_images.$i.'.jpg')){
unlink($thumb_images.$i.'.jpg');
}
}
I allow up to 5 images on my site, each ending with a nr 1-5. However, my problem is this, whenever the folder-name has a special character, the file_exists returns false, ie it doesn't find the file. Even though it is there.
All documents are in utf-8 format.
This works when there is no special characters in the folder names.
If you need more input let me know