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

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

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