Em Andamento

php FTP function

Hi, I need a simple php page that can open an ftp connection, download a files from a directory and upload it in the directory of another server. This example show how to upload a file from a server to the local computer but me I need to upload it in the directory of another server.

<?php

$ftp_server([[url removed, login to view]][1]);

$ftp_user_name="aliga";

$ftp_user_pass="gaga";

$source_file="c:\arf\[url removed, login to view]"

$destination_file="\www\repertoire\[url removed, login to view]";

$conn_id = ftp_connect("$ftp_server");

$login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass");

if ((!$conn_id) || (!$login_result)) {

echo "La connexion FTP a échoué!";

echo "Tentative de connexion ? $ftp_server avec $ftp_user_name";

die;

} else {

echo "Connecté ? $ftp_server, avec $ftp_user_name";

}

$upload = ftp_put($conn_id, "$destination_file", "$source_file", FTP_BINARY);

if (!$upload) {

echo "Le téléchargement Ftp a échoué!";

} else {

echo "Téléchargement de $source_file sur $ftp_server en $destination_file";

}

ftp_quit($conn_id);

?>

Thank you !

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

## Platform

IE mozilla

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: php program to upload files, le code, en engineering, web die, connexion, arf, file arf, test php page, php web ftp, open arf file, flv download open source, ftp source code, avec, ftp download working, php upload file local, web page local executable, download php ftp, echo file php, php echo file, code ftp, ftp simple, simple php form example, function download, php code function, download file ftp server

Acerca do Empregador:
( 98 comentários ) quebec, Canada

ID do Projeto: #2995763

Premiar a:

lagnajeetpradhan

See private message.

$4 USD em 1 dia
(12 Avaliações)
2.5

3 freelancers estão ofertando em média $8 para este trabalho

telosMed

See private message.

$12.75 USD em 1 dia
(123 Comentários)
5.3
vw6595785vw

See private message.

$8.5 USD em 1 dia
(3 Comentários)
0.0