At 07:14 07.11.2002, Charles Wiltgen said:
--------------------[snip]--------------------
>// Delete a file via FTP
>function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) {
--------------------[snip]-------------------- 

or, if you have FTP support built in:

$user = '**user**';
$pass = '**pass**';
$ftphost = 'ftp_host';
$ftpfile = '/www/sample.html';


$fp = ftp_connect("$ftphost");
if ($fp) {
        $login = ftp_login ($fp, $user, $pass); 
        ftp_delete ($fp, $ftpfile); 
        ftp_quit($fp);
}
else die('Cannot connect to FTP');



-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to