Reply to Re: Advice on deleting images from server using PHP

Your name:

Reply:


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
--

[Back to original 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

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