Thanks a lot, It is working perfectly now.Now the only work left is store each $header: $value <br />\n to a file so that I can save this information.And I did this like this
<?php
function emu_getallheaders() {
foreach($_SERVER as $name => $value)
if(substr($name, 0, 5) == 'HTTP_')...