Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Php header content
06-01-2011, 10:37 AM #1
- Join Date
- May 2010
- Thanked 0 Times in 0 Posts
Php header content
I am wondering when I paste this code below above the many codes, it does not open a prompt to save an excel file? But when I paste it somewhere in the middle it opens up.
$fileName = 'mysql-to-excel.xls';
header("Content-Disposition: attachment; filename=$fileName");