A very stupid question, I'm not using PHP too much, so I'm already in trouble only to add a string to a file name :-(
What I want to do is make a IF statement like this:
if (!file_exists($codice.jpg) {
$codice = "xxxx"; }
In other words it should check for existency of a file name that has .jpg as extension, $codice is a number without .jpg .
I need to have them togheter to check file system and than, if it does not exist, assign the value xxxx to variable $codice.
Could you translate it for me in PHP ?
Many thanks
Fabio