Results 1 to 1 of 1
Jan 18, 2005, 16:48 #1
- Join Date
- Jan 2005
- 0 Post(s)
- 0 Thread(s)
Session On with download attachment problem
I've a really strange problem, when I turn on session in php.ini (session.auto_start = 1), my download page (exportExcel.php) stop working :
header("Content-Disposition: attachment; filename=\"filename.xls\"");
1. when I mean stop working it is trying to download the entire page (exportExcel.php) instead of the attachment (filename.xls)???
2. But if I turn off session in php.ini (session.auto_start = 0), it works fine, I can down the attachment. This only happens in our Production environment, i can't duplicate the same problem in our Development and Testing environments, very odd. All Environment uses the same apache web server and same version of PHP version 4.2.2.
Thank you for your time.