bu butona şunu yaz

onclick="javascript:window.close()"

ama bu php değil js hocam bilgin olsun php ile olmaz kapatamazsın onu