note 32852 deleted from function.unlink by didou
| From: | didou@php.net | Date: | Sun, 03 Aug 2003 13:29:43 +0000 |
| Subject: | note 32852 deleted from function.unlink by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53261@lists.php.net to get a copy of this message | ||
Note Submitter: Pascal@Pascal-Rehfeldt.com
----
If the unlink() funktion won't work for any reason, you can use this funktion (of course you
need access by FTP):
function ftp_del ($host = 'localhost', $user = 'root', $pw = '',
$file) {
$connid = ftp_connect($host);
$login = ftp_login($connid, $user, $pw);
$status = ftp_delete($connid, $file);
ftp_close($connid);
return $status;
}
echo ftp_del('localhost', 'http', 'dungeonmaster',
'your_file.txt');