convert data into excel sheet using php
Moderator: General Moderators
-
vidyadoiphode
- Forum Newbie
- Posts: 14
- Joined: Wed Oct 04, 2006 4:46 am
convert data into excel sheet using php
can anone tell me how to convert data into excel sheet?
either write the file as CSV, Excel will open this no problem.
If you want to write a file as a "real" Excel file you will need to use something like
writeexcel package
http://www.bettina-attack.de/jonny/view ... riteexcel/
If you want to write a file as a "real" Excel file you will need to use something like
writeexcel package
http://www.bettina-attack.de/jonny/view ... riteexcel/
-
vidyadoiphode
- Forum Newbie
- Posts: 14
- Joined: Wed Oct 04, 2006 4:46 am
Something like will get your started.
Then echo back your variables.
./Will
Code: Select all
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=file.csv);
header("Pragma: no-cache");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Expires: 0");./Will