Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-17-2013, 07:54 AM #1
- Join Date
- Jan 2013
- Thanked 0 Times in 0 Posts
CSV File download not working on live server though it works on localhost
I am facing a problem with the CSV download on live though it's working on localhost.
Here is my code, please have a look -
module_load_include('inc', 'signup_event', 'event_signup_view');
$csv_output = '';
$csv_output .= "Role,Last name,First Name,Patrol,Position,Home phone,Cell Phone,Email,Payment Date,Unit Join Date,Payment Status\n";
$nid = 2001;
// add the paid users to the csv
$csv_output .= getPaidScoutUsers($nid);
// get unpaid users, add them to the csv
$csv_output .= getUnpaidUsers($nid);
header("Content-Disposition: attachment; filename=\"Registration_Dues_Information.csv\"");
Can somebody point out the issue?
I have mentioned AddType application/octet-stream .csv in my .htaccess also, so that wont be the issue I hope..
01-17-2013, 01:49 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,662 Times in 2,631 Posts
Check your error logs or enable it inline with
Any issues with undefined functions or headers already sent?PHP Code:
Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');