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

Popular posts from this blog

runtime error - Cannot find an overload for op_subtraction when subtracting datetime from datetime in powershell -

javascript - Backbone pushState routes -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -