Is there a way to convert csv file to excel file upon request through apache/.htaccess
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
There is a project in sourceforge that does this conversion:
http://sourceforge.net/projects/py-csv2xls/
But for the conversion you need to make a dynamic page in apache (in python, php...)
Note: PHPExcel is now listed as DEPRECATED.
Users are directed to PhpSpreadsheet.
Using PHPExcel
Yes, since apache is open-source, you can modify the .htaccess parser to call a library to convert your CSV files into excel files. But I don't think this is what you're looking for. :-).
I think really what you need is a dynamic web site. Then you can use PHP or any supported language to do what you need to do.
something like this: http://www.westwideweb.com/wp/2009/01/12/convert-csv-to-xls-excel-in-php/