Use the unlink function: $myFile = "testFile.txt"; unlink($myFile); On 7/1/06, Ron Piggott (PHP) <ron.php@xxxxxxxxxxxxxxxxxx> wrote:
Every now and then the following command fails --- the FTP connection is refused by the server: $conn_id = ftp_connect($ftp_server); Is there a way to delete a file within PHP without having to FTP to the server? Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Dave W