Page 1 of 1

delete folders and files using php??

Posted: Fri Jan 19, 2007 6:45 pm
by PHPycho
Hi all of you
my questions>>
*how to delete folders?
*how to delete all files in a folder?
*how to delete certain files for ex. ".php" extension files in a folder?

I would really appreciate your help.
Thanks in advance to all of you.

Posted: Fri Jan 19, 2007 6:47 pm
by Luke

Posted: Fri Jan 19, 2007 9:48 pm
by PHPycho
Thanks Mr.The Ninja Space Goat
i got the basic idea...
besides, I found a good recursive function for deleting files and folders...
Hope this will be helpful to many..
the link is below:

http://lixlpixel.org/recursive_function ... ry_delete/[/url]

Posted: Fri Jan 19, 2007 9:54 pm
by Kieran Huggins
PHPycho wrote:Thanks Mr.The Ninja Space Goat
I just imagined:
The Ninja Space Goat wrote:My father is Mr.The Ninja Space Goat, you can just call me The Ninja Space Goat.
:rofl:

I need sleep :cry: