Tag Archives: delete

Christmas shopping email confirmation.

20111128-114320 AM.jpg

Delete file in FTP via PHP

I hated the days of old when i use to just leave old unused files that had been uploaded lying around the FTP. This really nice bit of code will allow you to delete a file from your FTP. I use it along side deleting the records from the database.

$ftp_con = ftp_connect(‘ftp.hostname.com’);