Re: Problema con ftp_get()
| From: | Juan Francisco Giordana | Date: | Tue, 02 Nov 2004 17:34:32 +0000 |
| Subject: | Re: Problema con ftp_get() | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-51965@lists.php.net to get a copy of this message | ||
Paul wrote:
Hola Lista, Tengo un problema con la función ftp_get() , me da este error Warning: ftp_get() expects parameter 4 to be long, string given in /var/www/eltiempo/demonio.php on line 31 al utilizar la línea de código ftp_get($ftp,$DOCUMENT_ROOT."/inicio/ficheritos/".$Nombre,$lista[$x], "FTP_BINARY"); He problado con FTP_ASCII y tengo el mismo problema.ftp_get ( resource secuencia_ftp, string archivo_local, string archivo_remoto, int modo [, int pos_reanudar]) resource secuencia_ftp = $ftp, string archivo_local = $DOCUMENT_ROOT string archivo_remoto = "/inicio/ficheritos/".$Nombre int modo = $lista[$x] ------> este valor debe ser un entero y por eso te da error Del manual: El modo de transferencia especificado debe ser un valor entre FTP_ASCII o FTP_BINARY. [int pos_reanudar] = valor opcional, también entero Para mi que le estas errando en la concatenación. Saludos -- Juan Francisco Giordana email: python@nks.com.ar gmail: juangiordana@gmail.com www: http://python.nks.com.ar ICQ/UIN.: 162252809 Linux registered user Nº 294733