av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁技術文章
文章詳情頁

php生成EXCEL的東東

瀏覽:95日期:2022-07-20 17:33:43
可以通過PHP來產生EXCEL檔.;;teaman翻譯 ---------------------------- Excel Functions ---------------------------- 將下面的代碼存為excel.php ,然后在頁面中包括進來 然后調用 1. Call xlsBOF();; 2. 將一些內容寫入到xlswritenunber() 或者 xlswritelabel()中. 3.然后調用 Call xlsEOF() 也可以用 fwrite 函數直接寫到服務器上,而不是用echo 僅僅在瀏覽器上顯示。 ;;;<?php // ----- begin of function library ----- // Excel begin of file header function xlsBOF() { ;;;;echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);;;;;;;return; } // Excel end of file footer function xlsEOF() { ;;;;echo pack("ss", 0x0A, 0x00); ;;;;return; } // Function to write a Number (double) into Row, Col function xlsWriteNumber($Row, $Col, $Value) { ;;;;echo pack("sssss", 0x203, 14, $Row, $Col, 0x0); ;;;;echo pack("d", $Value); ;;;;return; } // Function to write a label (text) into Row, Col function xlsWriteLabel($Row, $Col, $Value ) { ;;;;$L = strlen($Value); ;;;;echo pack("ssssss", 0x204, 8 + $L, $Row, $Col, 0x0, $L); ;;;;echo $Value; return; } // ----- end of function library ----- ?> //;;// To display the contents directly in a MIME compatible browser;;// add the following lines on TOP of your PHP file: <?php header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header ("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT"); header ("Cache-Control: no-cache, must-revalidate");;;;;;header ("Pragma: no-cache");;;;;;header ('Content-type: application/x-msexcel'); header ("Content-Disposition: attachment; filename=EmplList.xls" );;;header ("Content-Description: PHP/INTERBASE Generated Data" ); // // the next lines demonstrate the generation of the Excel stream // xlsBOF();;;;// begin Excel stream xlsWriteLabel(0,0,"This is a label");;;// write a label in A1, use for dates too xlsWriteNumber(0,1,9999);;;// write a number B1 xlsEOF(); // close the stream ?>
標簽: excel
主站蜘蛛池模板: 欧美高清视频 | 欧美一区2区三区4区公司二百 | 国产在线视频一区二区 | 免费av在线网站 | 精品久久久久久 | 日韩一级欧美一级 | 精品www| 手机在线观看 | 亚洲国产精品久久久 | 国产一区二区精品在线观看 | 久草青青草 | 国产精品99久久久久久www | 99热热精品 | 中文字幕高清一区 | 午夜免费在线 | 日日操夜夜操天天操 | 在线一区二区观看 | 男女精品网站 | 欧美国产一区二区 | 亚洲最大成人综合 | 九九色综合 | 麻豆成人在线视频 | 成人精品一区二区三区中文字幕 | 亚洲一区 | 国产精品久久国产精品99 gif | 成人免费看黄网站在线观看 | 免费观看视频www | 国产美女在线看 | 人人擦人人 | 亚洲热在线视频 | 午夜av一区二区 | 欧美成年网站 | 日韩图区 | 91精品国产91久久久久久吃药 | 欧美亚洲国产一区 | 少妇一级淫片aaaaaaaaa | 日韩欧美精品在线播放 | 日韩视频国产 | 日韩欧美精品一区 | 在线一区视频 | 欧美一级二级三级视频 |