Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/06/2008, 14:24
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: problema con FTP

Cambia tu función así:
Código PHP:
function ConectarFTP(){

     
$id_ftp=ftp_connect(SERVER,PORT) or die( "Error al conectar el server: " SERVER ", puerto: " PORT ); //Obtiene un manejador del Servidor FTP
     
ftp_login($id_ftp,USER,PASSWORD); //Se loguea al Servidor FTP
     
ftp_pasv($id_ftp,MODO); //Establece el modo de conexión
     
return $id_ftp//Devuelve el manejador a la función

Saludos.