~
Advanced Hosters -

iwfyb
!
: 14.03.2008
: 2865
# : 18, 2009 7:10 pm
, :

,

. , ?
TOP Links -

JM
: 25.08.2006
: 1383
# : 18, 2009 9:12 pm
rsync
!!!
VDS AHnames.com -

iwfyb
!
: 14.03.2008
: 2865
# : 19, 2009 1:06 am
- ?
TOP Links -

brush
V.I.P.
: 29.09.2005
: 2566
# : 19, 2009 2:35 am
?

iwfyb
!
: 14.03.2008
: 2865
# : 19, 2009 7:35 pm
- php . 1 - ftp|login|pass
- , .
. ?
TOP Links -

iwfyb
!
: 14.03.2008
: 2865
# : 19, 2009 10:05 pm
:

<?
$name = "FILE NAME";
$filename = "FILE NAME WITH FULL PATH";

//-- Code to Transfer File on Server Dt: 06-03-2008 by Aditya Bhatt --//
//-- Connection Settings
$ftp_server = "IP ADDRESS"; // Address of FTP server.
$ftp_user_name = " SERVER USERNAME"; // Username
$ftp_user_pass = " SERVER PASSWORD"; // Password
$destination_file = " SERVER FILE PATH TO UPLOAD VIA FTP_PUT"; //where you want to throw the file on the webserver (relative to your login dir)

$conn_id = ftp_connect($ftp_server) or die("<span style='color:#FF0000'><h2>Couldn't connect to $ftp_server</h2></span>");        // set up basic connection

$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass) or die("<span style='color:#FF0000'><h2>You do not have access to this ftp server!</h2></span>");   // login with username and password, or give invalid user message

if ((!$conn_id) || (!$login_result)) {  // check connection
    // wont ever hit this, b/c of the die call on ftp_login
    echo "<span style='color:#FF0000'><h2>FTP connection has failed! <br />";
    echo "Attempted to connect to $ftp_server for user $ftp_user_name</h2></span>";
    exit;
} else {
    //echo "Connected to $ftp_server, for user $ftp_user_name <br />";
}

$upload = ftp_put($conn_id, $destination_file.$name, $filename, FTP_BINARY);  // upload the file
if (!$upload) {  // check upload status
    echo "<span style='color:#FF0000'><h2>FTP upload of $filename has failed!</h2></span> <br />";
} else {
    echo "<span style='color:#339900'><h2>Uploading $name Completed Successfully!</h2></span><br /><br />";
}
ftp_close($conn_id); // close the FTP stream   
?>



. , ....
TOP Links -

GFox
: 14.10.2007
: 232
# : 19, 2009 10:26 pm
" "...

2 :
1 - (Textarea),
2 - PHP , .

iwfyb
!
: 14.03.2008
: 2865
# : 19, 2009 10:36 pm
, . -((( ))
, , , , 4-6-2, )))
TOP Links -
    ~