Answer the question
In order to leave comments, you need to log in
How to fix Invalid instruction (core dumped) error?
CentOS6
When I try to install php-mcrypt or even just do yum update I get
Загружены модули: fastestmirror, security
Подготовка к установке
Loading mirror speeds from cached hostfile
Недопустимая инструкция (core dumped)
У вас есть новая почта в /var/spool/mail/root
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
Answer the question
In order to leave comments, you need to log in
Не используйте Remi Collet и снесите все, что поставили из него - они собирают нечто кривое. Для PHP используйте репозиторий webtatic
Well, csv is basically text. it can be output directly to the buffer directly, just set headers before that so that the browser understands that it is being shoved with a csv file, not html
It is better to immediately send data to the user.
header('Content-Description: File Transfer');
header("Cache-Control: public");
header('Content-Disposition: attachement;filename="test.csv";');
header('Content-Type: application/csv; charset=UTF-8');
$output = fopen('php://output', 'w');
...
fputcsv( $output, $item,';' );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question