[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: upload of the statistics to several ftp locations



Done:

                            config.inc.php:
<?php

$ftp_server[1] = "www.unappel.ch";
$ftp_user_name[1] = "******";
$ftp_user_pass[1] = "******";

$ftp_dir[1] = "/htdocs/company/091029-ACDstat/";

$ftp_server[2] = "www.switzernet.com";
$ftp_user_name[2] =
"******";
$ftp_user_pass[2] =
"******";
$ftp_dir[2] = "/company/091029-ACDstat/";

$prefix = 3395;
$d2=date("Y-m-d");

?>


On 2009-10-29 15:07, Task-By Christian Lathion wrote:
Suite de "separate ftp data in a separate file".

Une fois la fonction décrite ajoutée, tu peux facilement faire un upload sur plusieurs sites pour backup. Le fichier contenant les informations ftp devient comme ça:

ftp.switzernet.com,my_ftp_username,my_ftp_password,ftp_target_folder
ftp.unappel.ch,my_ftp_username,my_ftp_password,ftp_target_folder