Net_FTP::ls() (Previous) (Next) Net_FTP::get()

View this page in Last updated: Sun, 07 Sep 2008
English | French | German | Hungarian | Japanese | Polish | Spanish | Plain HTML

Net_FTP::rm()

Net_FTP::rm() -- deletes a file or directory.

Description

This method deletes a file or a directory.

Parameter

  • string $path = null - The file or directory to delete. In case you set the second parameter to true, directories will be deleted even if not empty. All files and directories inside will be deleted.

  • $recursive = false - This parameter determines, whether a directory is deleted only if it's empty (standard) or if all included files and directories will be deleted with it ($recursive = true).

Return value

mixed - true on success, otherwise PEAR::Error.

Note

This function can not be called statically.

Net_FTP::ls() (Previous) (Next) Net_FTP::get()

Download Documentation Last updated: Sun, 07 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.