FTP PHP Connect To SFPT
#1

Hey guys i transfer d to a server where i only have sfpt. How can i convert the code below to work as such.

Код:
<?php
global $config;
$local_file = "dmap_feed.json";
$server_file = "/home/samp03/scriptfiles/dmap_feed.json";

$ftp_server = "REMOVED"; // Address of FTP server.
$ftp_user_name = "root"; // Username
$ftp_user_pass = "REMOVED"; // Password
#$destination_file = "C:\Documents and Settings\DraKoNSAMP\Desktop\Clan [mGo]\GAMEMODE SAMP\GM\Sourcer\scriptfiles";
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) {
"File Downloaded $local_file\n";
} else {
"Desculpe.Servidor Esta Desligado\n";
}
$config['api key']='ABQIAAAAs4hWYZkFgUCmji8OXGEWhRSksbxBFPegAttWA_e4E3REnVZ2ahTH-L1GBwSzV3-OuBv0_8-shNpqtQ';
$config['default script'] = 'dmap_feed.json';
$config['allow external'] = true;

?>
Reply


Messages In This Thread
FTP PHP Connect To SFPT - by Robert_Crawford - 05.10.2011, 04:05
Re: FTP PHP Connect To SFPT - by Tye Huntley - 05.10.2011, 04:07
Re: FTP PHP Connect To SFPT - by Robert_Crawford - 05.10.2011, 04:10
Re: FTP PHP Connect To SFPT - by Tye Huntley - 05.10.2011, 04:18
Re: FTP PHP Connect To SFPT - by Robert_Crawford - 05.10.2011, 04:44
Re: FTP PHP Connect To SFPT - by BlazeFury - 05.10.2011, 04:59
Re: FTP PHP Connect To SFPT - by Mrkrabz - 05.10.2011, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)