I just wrote PHP Script, which should connect to FTP and delete all files in a special folder.
It looks like this, but I don’t know which command I need to delete all files in the folder logs.
Any idea?
<?php
$ftp_server = 'something.net';
$ftpuser = 'username';
$ftppass = 'pass';
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftpuser, $ftppass);
????????
ftp_close($conn_id);
?>
Lukas source
share