ftp - The archive after upload be damaged PHP -


well, start, english isn't good. apologies.

my problem have code, when upload, archive goes, stays damaged.

source:

<?php $servidor = 'mysite'; $usuario = 'user'; $senha = 'pass';   $ftp = ftp_connect($servidor);  $login = ftp_login($ftp, $usuario, $senha);   $local_arquivo = './arquivos/documento.doc'; $ftp_pasta = '/public_html/arquivos/'; $ftp_arquivo = 'documento.doc';  // envia o arquivo pelo ftp em modo ascii $envio = ftp_put($ftp, $ftp_pasta.$ftp_arquivo, $local_arquivo, ftp_ascii); 

thanks ;)


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -