Generating excel sheet from PHP code -
I want to generate Excel sheet from PHP code. I went out and found some solution, one of them is directly generated from the http header
On the other hand, using PHPExcel class is another way of using the Jquery
HTTP header is the right way to use or to do this Another easy way is using Excel
I recommend that:
& lt ;? Php header ("content-type: text / csv"); $ Out = FOPAN ('php: // output', 'w'); Fputsv ($ out, array ('this',' something ',' csv 'stuff ", you know.')); Fclose (outside $);? & Gt; This file can be easily opened in Microsoft Excel or any other CSV viewer - personally, I like.
Comments
Post a Comment