CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Español

 Eliminar Archivo (imagen) PHP

Print topic Send  topic

Author Message
vanilaice

Posts: 4
Posted: 04/15/2006, 7:10 PM

Hola...
Tengo el siguiente problema...
Tengo una pagina dinamica en la que subo imagenes como parte de una "noticia"...Aquella imagen no queda inserta en la Bd, sino que sólo la ruta a ella...La imagen queda en una carpeta...
Cuando elimino aquella "noticia" sólo elimino los campos de la Bd obviamente...Cómo borro la imagen asociada también??

Estoy trabajando con una BD MySQL y con PHP

Gracias
View profile  Send private message
lvalverdeb

Posts: 299
Posted: 04/17/2006, 7:31 AM

En el evento BeforeExecuteDelete:

  
unlink(ruta/al/archivo/nombrearchivo.ext);  

Luis
_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.