Hi, guys
I have a very important problem, I need 2 check if a .gif file exist, I've used file_exists() but doesnt seem to work 😕 , does anyone know how to do this?
*the sintaxis I use is:
if(file_exists($num))
{
echo "
<center> <img src='$dirgraficas/2003.gif'> </center>
";
} else {
echo "
<center> <img src='$dirgraficas/$num'> </center>
";
}
Num has the value of 001.gif, 002.gif increments on a for() cycle
well, hope you can help me guys, cya.