0
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 issue is that the PHP file that is doing this query is on assets/external/
so he can’t find the file.
How to make it look in the right folder?
Hugs.
You can use
..
to return a directory, the path would be../img/items/
– Denis Rudnei de Souza
@Denisrudneidesouza worked
– Italo Rodrigo