Can anyone see why this header would download the html this php page sends out in a file urlgen.bat overwriting its existing content instead of the original file urlgen.bat
<?
header("Content-Type: application/octet-stream");
header("Content-disposition: attachment; filename=urlgen.bat ");
...
?>
....
many thanks
paul