note 111481 added to book.ftp

From: Date: Sun, 24 Feb 2013 17:19:30 +0000
Subject: note 111481 added to book.ftp
Groups: php.notes 
Request: Send a blank email to php-notes+get-193740@lists.php.net to get a copy of this message
Upload file to server via ftp. $ftp_server=""; $ftp_user_name=""; $ftp_user_pass=""; $file = "";//tobe uploaded $remote_file = ""; // set up basic connection $conn_id = ftp_connect($ftp_server); // login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // upload a file if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) { echo "successfully uploaded $file\n"; exit; } else { echo "There was a problem while uploading $file\n"; exit; } // close the connection ftp_close($conn_id); ---- Server IP: 69.147.83.199 Probable Submitter: 101.208.177.19 ---- Manual Page -- http://php.net/manual/en/book.ftp.php Edit -- https://master.php.net/note/edit/111481 Del: integrated -- https://master.php.net/note/delete/111481/integrated Del: useless -- https://master.php.net/note/delete/111481/useless Del: bad code -- https://master.php.net/note/delete/111481/bad+code Del: spam -- https://master.php.net/note/delete/111481/spam Del: non-english -- https://master.php.net/note/delete/111481/non-english Del: in docs -- https://master.php.net/note/delete/111481/in+docs Del: other reasons-- https://master.php.net/note/delete/111481 Reject -- https://master.php.net/note/reject/111481 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193740) next »