Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/01/2009, 10:21
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: mirar si existe una carpeta en el servidor

Mmmm prueba esta función:
Código php:
Ver original
  1. function ftp_directory_exists($ftp, $dir)
  2. {
  3.     // Get the current working directory
  4.     $origin = ftp_pwd($ftp);
  5.    
  6.     // Attempt to change directory, suppress errors
  7.     if (@ftp_chdir($ftp, $dir))
  8.     {
  9.         // If the directory exists, set back to origin
  10.         ftp_chdir($ftp, $origin);  
  11.         return true;
  12.     }
  13.  
  14.     // Directory does not exist
  15.     return false;
  16. }

Tomada del manual de PHP.net

Saludos