Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/02/2008, 05:22
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 4 meses
Puntos: 126
Re: eliminar una imagen

Prueba así

Código PHP:
 Private Function EliminarArchivo(byval strpath)
Dim fs 
Set fs
CreateObject("Scripting.FileSystemObject"
if 
not fs.fileExists(strPaththen Exit Function 
fs.DeleteFile(strpath)
End Function 
y lo sacas

Código PHP:
 Call EliminarArchivo(Server.MapPath("./archivos/"&objFich.nombre&"")) 
Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />