Page 1 of 1
How to delete the non-catalogue by unlink()?
Posted: Thu Sep 05, 2002 2:26 am
by rich
How to delete the non-catalogue by unlink()?
Posted: Thu Sep 05, 2002 2:39 am
by gite_ashish
hi,
What is "non-catalogue" ?
If it is the name fo the file you want to delete, unlink() is the correct function.
If it is the name of the directory, then you need to use rmdir() to remove directory. (The directory must be empty.)
You can use is_dir()/is_file() to check the type.
For removing the file/directory, the php should have the relevant permissions on it.