1

I'm using the latest XAMPP, and I've downloaded PhpSpreadsheet with composer, but upon requesting the file, it says that Class 'ZipArchive' is not found. This is my code so far:

$file = './data/data.xlsx';
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($file);

I've already tried installing php through brew again, still doesn't work.
However, typing -m in the terminal does show the zip module.
Any ideas what I might be doing wrong?


Edit: it appears that there's no Zip in phpinfo() either

Biki Bico
  • 35
  • 6
  • The web server config and the command line config are often different. Run `phpinfo()` from a web page to see what modules are installed and which `php.ini` file is being used. – Alex Howansky Jan 16 '20 at 23:29
  • oh ok, just tried it and there's no Zip in `phpinfo()`. Is there any way to activate it? – Biki Bico Jan 17 '20 at 02:30

0 Answers0