note 26895 deleted from function.ftp-delete by didou

From: Date: Thu, 29 May 2003 01:44:22 +0000
Subject: note 26895 deleted from function.ftp-delete by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49231@lists.php.net to get a copy of this message
Note Submitter: jeremie@aboiron.com ---- Example of deleting files on a distant server. Note that is possible you have to change the directory before deleting your files etc. // ----- START FTP ----- // -- FTP and connexion setting -- $ftp_server = "ftp.yourserver.com"; $ftp_user_name = "yourlogin"; $ftp_user_pass = "yourpassword"; $conn_id = ftp_connect("$ftp_server"); $login_result = ftp_login($conn_id,$ftp_user_name,$ftp_user_pass); // -- delete file -- $delete = ftp_delete($conn_id,filename); // -- close FTP connexion -- ftp_quit($conn_id); // ----- END -----

« previous php.notes (#49231) next »