help me!!!

Topics: Developer Forum, Project Management Forum, User Forum
Jan 19, 2009 at 10:14 AM
Edited Jan 19, 2009 at 12:14 PM
I run the 01simple.php in WinXP result is:
09:42:15 Create new PHPExcel object 09:42:15 Set properties 09:42:15 Add some data 09:42:15 Rename sheet 09:42:15 Write to Excel2007 format 09:42:16 Peak memory usage: 6.25 MB 09:42:16 Done writing file.

but in Linux result is:
10:12:02 Create new PHPExcel object 10:12:02 Set properties 10:12:02 Add some data 10:12:02 Rename sheet 10:12:02 Write to Excel2007 format

so I can't get the xlsx  file.

I have chmod 777 to the path. but also can't get the file.

what can I do?


my question like http://www.codeplex.com/PHPExcel/Thread/View.aspx?ThreadId=42034

but he don't say clear how to solve the problem.

help me!

thank you!

Developer
Jan 19, 2009 at 12:41 PM
Maybe you don't have zip extension on your Linux machine? Check using phpinfo() if you have zip extension.

That other thread had to do with special characters, this is a different problem.

Coordinator
Jan 19, 2009 at 2:42 PM
Are you getting any error messages, or is it simply not creating the file. It should be written to the same directory as the 01simple.php script, and called 01simple.xlsx.

Ensure that you gave error_reporting(E_ALL) and ini_set('display_errors','1') at the head of the script.
Jan 20, 2009 at 2:45 AM
Edited Jan 20, 2009 at 2:46 AM
I install the zip extension ,but the problem still exist

and after install the zip extension another problem appear,the 01simple.php return the error page can't find the page on the server.

but after I use setTempDir , the error page disappear. but I still can't get the xlsx file

the result the same as before:
10:12:02 Create new PHPExcel object 10:12:02 Set properties 10:12:02 Add some data 10:12:02 Rename sheet 10:12:02 Write to Excel2007 format


I find the problem happen when run the : $objWriter->save(str_replace('.php', '.xlsx', __FILE__));

help me !!!

help!!!

Jan 20, 2009 at 2:48 AM
I can see the temp files , but all the file 's size  is 0.

but only can see the temp files ,not the xlsx files