Skip to content
Advertisement

PHP + FTP delete files in folder

I just wrote a PHP Script which should connect to FTP and delete all files in a special folder.

It looks like this, but I have no clue what command I need to delete all files in the folder logs.

Any idea?

JavaScript

Advertisement

Answer

JavaScript

You might want to do some checking for directories, but at a basic level, that is it.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement