Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/02/2003, 22:10
memoros77
 
Fecha de Ingreso: noviembre-2002
Ubicación: Guadalajara
Mensajes: 14
Antigüedad: 21 años, 5 meses
Puntos: 0
Que onda que creen encontre este codigo:

if you want to enter in a dir, and create it if it doesn't exist, you can do something like that :
if (! @ftp_chdir($ftpc,"mydir")) {
// dir doesn't exist, so we create it and enter in it
ftp_mkdir($ftpc,"mydir") ;
ftp_chdir($ftpc,"mydir") ;
}
else {
// dir exists, and the first call make us enter in it
}
Don't forget the @, otherwise you will get a warning ("the dir doesn't exist" etc..)

Solo tengo dos preguntas:

1-solo al poner el nombre del directorio este se busca en todos los directorios del ftp; como en este caso o se tiene que poner la ruta?????

2-segundo es respecto a la "@" que funcion tiene????

Gracias (voy hacer pruebas pero pregunto por si alguien mas tiene alguna duda a la mejor se le resulve con esto)

Saludos...