Monday, 4 February 2013

3 simple Steps to Create PHP code to Excel SpreadSheets

// siddhu vydyabhushana // 6 comments
   As per many request am telling you that this tutorial designed.Spread sheets are simple and easiest sheets which can arrange data in order.Follow below steps for convertion.




                     3 simple Steps to Create PHP code to Excel SpreadSheets 


STEP-1: TYPE OF THE CONTENT 

what type of content its is, it may be pdf or it may be word or excel


        header("Content-Type: application/vnd.ms-excel");

"application/vnd.ms-excel" tells you the content type

STEP-2: ADDING THE DATA

echo "name" ."\t". "ph-no" ."\t". "state"."\n";
echo "siddhu" ."\t". "9533754145" ."\t". "andhra"."\n";

"\t" - gives you tab Space 
"\n"-new line output

name    ph-no       state
siddhu 9533754145 andhra


STEP-3 :DOWNLOAD EXCEL SHEET

header("Content-disposition: attachment; filename=spreadsheet.xls");

data added and header added by writing above lines you can convert php to excel

THANQ
siddhu vydyabhushana.

6 comments:

  1. Easy way to get YouTube activates channel or account working youtube.com/activate. You simply require to insert the code that appears on TV screen next login YouTube channel. To know more information in details you can contact us.

    ReplyDelete
  2. Thanks for sharing this great post. If you need any kind of www.amazon.com/mytv activate related any queries contact us. Amazon prime customer care team always available for customer suitability and fix your issue instantly.

    ReplyDelete
  3. Interesting read! Verified Coupons have definitely improved my online shopping habits. Instead of randomly applying codes, I now focus on verified and tested discounts, which saves time and reduces frustration. Your article reinforces the importance of choosing quality over quantity when searching for deals.

    More info:
    Promo Codes uae
    Discount uae
    Cashback Offers 2026 uae

    ReplyDelete
  4. I appreciate how this blog highlights what really matters in a Best Nursery School. From safety standards to interactive classrooms, every point helps parents understand how to choose a nurturing and supportive learning space.


    More info:-

    play School
    preschool
    Best Play in School in Rajouri Garden

    ReplyDelete