• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHPExcel Export Problem

Please help me, 

This site can’t be reached
The webpage at http://localhost/xxx/xxx/x might be temporarily down or it may have moved permanently to a new web address.

This is my controller

function exportData()
        $id = $this->uri->segment(3);
                include APPPATH.'third_party/PHPExcel/PHPExcel.php';
        $excel = new PHPExcel();
        ->setKeywords("Data Result");
                $excel->setActiveSheetIndex(0)->setCellValue('A1', "Data");

        $excel->setActiveSheetIndex(0)->setCellValue('A2', $id);

            $excel->getActiveSheet(0)->setTitle("Data Result");

                header('Content-Type: application/vnd.ms-excel');
        header('Content-Disposition: attachment;filename="'.$filename.'"');
        header('Cache-Control: max-age=0');

        $write = PHPExcel_IOFactory::createWriter($excel, 'Excel2007');
Mac OSX, PHP 7.2.15, i was try in PHP 7.3 and not working. 
im using plugin PHPExcel

That has been discontinued you should use this now.

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.