The code for download that works at localhost is but live at hostgather server it throughs error
ob_get_clean();
header("Content-type: text/x-csv"); # DECLARING FILE TYPE
header("Content-Transfer-Encoding: binary");
header("Content-Disposition: attachment; filename=".$csv_file_name); # EXPORT GENERATED CSV FILE
header("Pragma: no-cache");
header("Expires: 0");
echo $fields;
exit;
Ошибка
Предупреждение: нельзя изменить информацию заголовка — заголовки уже отправлены (вывод начался в /home/londoner/public_html/pkfones.com/pinquest/wp-admin/includes/template.php:1679) в /home/londoner/public_html/pkfones. com/pinquest/wp-content/plugins/wp-gamesize/setgamesize_admin.php в строке 131