MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Delete image w/ database record



Hi All,
    I have it set up so that my clients can add / edit / remove items without my intervention, and upload image files as well.  The image files are always in the same directory and are named using [item-code].jpg
    What I would like to do now is have it so that when they remove the item from the database it also deletes the image. All of this is in a password protected directory so security isn't a major concern.  I had considered using a SSI with an EXEC and "rm -f /full/path/[item-code].jpg", but I don't think you can use a normal SSI in a catalog page.
    Any suggestions.
 
Thanks,
Brian T. Allen
brian@purenetfx.com

Search for: Match: Format: Sort by: