Re: ftp
| From: | MiKairos | Date: | Sat, 10 May 2003 15:42:41 +0000 |
| Subject: | Re: ftp | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-36060@lists.php.net to get a copy of this message | ||
Hola:
Leyendo el MARAVILLOSO Manual de PHP dice
bool ftp_put ( resource ftp_stream, string remote_file, string local_file,
int mode [, int startpos])
The transfer mode specified must be either FTP_ASCII or FTP_BINARY.
un ejemplo
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_ASCII);
o sea, es FTP_ASCII, sin comillas, porque ese es una Constante ya definida,
que se cambiará por el valor correspondiente.
MiKairos
"Aldo Quezada V." <aquezada@bsp-inspector.cl> escribió en el mensaje
news:5.2.0.9.0.20030509181801.019ad028@192.168.1.1...
> Amigos tengo un drama con el FTP_PUT me envia este error
>
> PHP Warning: ftp_put() expects parameter 4 to be long, string given in
> E:\sitios\test\ftp.php on line 24
>
>
> linea 24
>
>
> ftp_put($conn,"ftp.txt","ftp.txt", 'FTP_ASCII');
>
>
>
> y cuando le pongo FTP_ASCII solo sin comillas (dobles y simples) me envia
> este error
>
> PHP Warning: ftp_put()
> [<http://www.php.net/function.ftp-put>function.ftp-put]:
> Directory changed
> to /d:/vserver/manos/htdocs/pruebas in E:\sitios\test\ftp.php on line 24
>
>
>
> Aldo F. Quezada V.
> JTIC / BSP-Inspector
> Fono : 946 25 74
> 946 25 75
> 946 12 88 anexo 111
> http://www.bsp-inspector.cl
>
>
>