ftp_fput

(PHP 3>= 3.0.13, PHP 4 >= 4.0b4)

ftp_fput -- Sube un fichero abierto al servidor FTP.

Descripción

int ftp_fput (int ftp_stream, string remote_file, int fp, int mode)

Si tiene éxito, devuelve true. En caso de error, devuelve false

ftp_fput() sube los datos apuntados por el puntero a fichero fp hasta alcanzar el final del fichero. Los resultados se guardan en el fichero remote_file del FTP remoto. El modo de transferencia especificado por el parámetro mode debe ser FTP_ASCII o bien FTP_BINARY.