|
Posted by Alvaro G. Vicario on 07/12/06 19:04
*** Frankie escribió/wrote (Wed, 12 Jul 2006 18:36:01 GMT):
> I have coded the Delete page which deletes the product record from
> the database, however the product image remains in the associated folder on
> the server. I'd prefer these images not accumulate and would like to delete
> these images along with the database record.
>
> Can anyone refer me to a PHP script or suggest a way to do this?
http://www.php.net/unlink
Of course, you must read the filename from DB *before* deleting the record
;-)
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Navigation:
[Reply to this message]
|