file_exists

From: Date: Thu, 18 Jul 2002 15:55:33 +0000
Subject: file_exists
Groups: php.general.es 
Request: Send a blank email to general-es+get-25033@lists.php.net to get a copy of this message
Amigos: tengo un pequeño problema, necesito saber si un archivo existe en un directorio he hecho las pruebas de este modo if (file_exists('prueba.jpg'){ echo "<LI><FONT SIZE='3' COLOR='red'><b>IMAGEN YA EXISTE</b></FONT><br>"; } dandole un archivo existente en el mismo directorio y dandole una ruta $path = "z:\\test\\archivos\\u".$ubic."\\".$HTTP_POST_FILES['foto'.$i]['name'].""; echo $path; // aqui me imprime esto z:\test\archivos\u24955\Muestra.jpg // fin comentario if (file_exists($path){ echo "<LI><FONT SIZE='3' COLOR='red'><b>IMAGEN YA EXISTE</b></FONT><br>"; } esto esta en window NT y php version 4.1.2 y me envia parse error en la linea de file_exists

« previous php.general.es (#25033) next »