I'm testing if a file exists like this:
if (file_exists('assets/img/items/'. $currentLocation['id'] .'c.jpg')){
$galleryItem .= '<img src="assets/img/items/'. $currentLocation['id'] .'c.jpg" alt="">';
}
The question is that the PHP file that is doing this query is in assets/external/
so it does not find the file.
How do I search for the correct folder?
Hugs.