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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -