Can't get provided PHP Excel Test Samples to work.

Topics: Developer Forum
May 26, 2012 at 4:03 AM

I have done everything I know possible to try to get the provided test files to work but am still having no luck.

I could show the phpinfo() screen and php.ini files if that could help show I have the zip,gd2, and xml extensions loaded properly?

For example, when I run 01simple.php I get only the following output - as it seems it stops somewhere in the script.

03:57:08 Create new PHPExcel object 03:57:09 Set document properties 03:57:09 Add some data 03:57:09 Rename worksheet /var/www/html/Tests/01simple.xlsx03:57:09 Write to Excel2007 format 

May 26, 2012 at 3:26 PM
Edited May 26, 2012 at 3:27 PM

01simple.php saves the Excel that it generates as a file file in the same directory as the script, so try looking for the file 01simple.xlsx in the /var/www/html/Tests directory. If it isn't there, check file permissions for the directory.


And try 01simple-download-xlsx.php which will direct its Excel output the the browser for download