Hi, i'm getting the errors below
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Apps\Apache Group\Apache2\htdocs\excel.php:10) in C:\Web Apps\Apache Group\Apache2\htdocs\excel.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Apps\Apache Group\Apache2\htdocs\excel.php:10) in C:\Web Apps\Apache Group\Apache2\htdocs\excel.php on line 46
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Apps\Apache Group\Apache2\htdocs\excel.php:10) in C:\Web Apps\Apache Group\Apache2\htdocs\excel.php on line 47
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Apps\Apache Group\Apache2\htdocs\excel.php:10) in C:\Web Apps\Apache Group\Apache2\htdocs\excel.php on line 48
and this is the code I am using...i've been looking for extra spaces and extra lines and I got rid of all of them..i think... but it's still not working. Any ideas???
<?php
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=extraction.xls");
header("Pragma: no-cache");
header("Expires: 0");
print "$header\n$data";
?>