Does anyone know if "file_exists" works in Windows IIS?
Because this is the code I have and I always get the default picture
$caminho ="www/htdocs/imagens/fotos/";
$caminhourl ="../imagens/fotos/";
$file=$caminho.$linhadocente["id_doc"];
switch(true)
{
case file_exists($file.".jpg"):
$foto=$file.'.jpg';
break;
case file_exists($file.".gif"):
$foto=$file.'.gif';
break;
case file_exists($file.".bmp"):
$foto=$file.'.bmp';
break;
default:
$foto=$caminhourl.'silhueta.gif';
break;
}
echo '<img src="'.$foto.'" border=1 width="100" height="150">'; ?>