You are here: Removing multiple directories « All PHP « IT news, forums, messages
Removing multiple directories

Posted by sam ruos on 11/22/07 20:44

I have an issue here guys...

I can't seem to be able to mrdir on multiple entries at a time. Any help
would be much appreciated...

From a display list, I have a checkbox next to each entry for deleting the
entries, eg. I want to delete five of those.

After confirming?submitting the deletion form, I collect the checked values
and store them in an array along with their ID ofcourse, then using the for
loop calling a function that would:

1. Get the name of the directory that was stored in DB (using unique ID).
The folder or directory was created during upload of files.
2. Call for another function DELETE_ALL_FILES($id[$i], $DB_name,
$DefaultDir) to delete any files in this folder
3. And then within this function I call for another function
REMOVE_DIR($foldername, $DefaultDir) and then after removing the affected
directory, then lastly to delete the record from the DB.

It works! But only on an entry at a time!

Any better solution to go around this? Is there anything to do with
opendir() and chdir() and closedir()?
I'm stuck now... and frustrated.

Thankx beforehand
-sammy

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация