Permission prob while deleting file

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
Hi guys,

When i try to delete a file from the ftp server, I was told permission denied while deleting most of the file inside the folder. I have cmod the folder to 755 ( i even cmod it to 777) but the prob still there..

May i know how actually i can delete this folder ?

Please advise.
 
Alicia said:
When i try to delete a file from the ftp server, I was told permission denied while deleting most of the file inside the folder. I have cmod the folder to 755 ( i even cmod it to 777) but the prob still there..

May i know how actually i can delete this folder ?

Let's get one thing straight: are you trying to delete a file, or a directory? If it's a directory, a quick look at the documentation might have answered your question:

bool ftp_rmdir ( resource ftp_stream, string directory)

Removes the specified directory. directory must be either an absolute or relative path to an empty directory.
 
You might also try this.
Code:
exec('rm -rf /dir/you/want/to/delete');
 
Back
Top