gracias hide!
hola, tengo esto, pero quiero que el codigo php se ejecute al cerrar la ventana ._. no antes X_X
Código PHP:
<?php
$filename = 'a.txt';
if(@file_exists($filename))
{unlink('a.txt');}
?>
<html>
<head>
<script language="Javascript" type="text/javascript">
//mensaje de alerta
function mensaje()
{
alert("todos los archivos que ingresó fueron borrados");
}
</script></head>
<body onunload="mensaje();">
</body>
</html>