Pues currandomelo un poko lo he conseguido por si ha alguno os intresa:
Código PHP:
<html>
<head>
<script language="JavaScript">
function cerrar() {
var ventana = window.self;
ventana.opener = window.self;
ventana.close();
}
</script>
</head>
<body>
<script>cerrar()</script>
</body>
</html>