why don't you use batch-add instead? No need to re-invent the wheel imo.
GauGau
i wil explain it;
* people can send MMS with there mobile phone to my mail adres, but to recognice them they must set the album name and there password from coppermine in the subject of the MMS.(works great)
* my mailserver (windows nt) extracts the attachment automic and create a subfolder in coppermine with the subject name.(works great)
batch-add is a nice , buts works only manuel by the admin, if batch-add can scan automatic new files (expample: when the user views him/her photo album) and put them automic in the db then my job is complete.
the file db_input.php in the section case 'picture': can do the job for me, but the vars are received by $HTTP_POST.(thats a problem because the files are already on the server). so i have been thinking to use some functions from the file batch-add to scan the dir.i need a combination of db_input.php and batch-add.php.
Security: i have thinking about that because automic batch-add can be a high server risk, but the mailserver extract only *.jpg files. and parse only one file(mail) in 10 minutes. so the security risk is low and when i have completed the script for automatic batch-add, i can check the pass and username, so people can only post in there own user album.
i have realy done my homework and seach this forum, but coppermine is to complex for me to find out the right functions for my problem.
if i have only an example i can work it out.
So the wheel is invented but not completed.
(sorry about my bad english)