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
主站蜘蛛池模板: 中文字幕av一区 | 欧美成人h版在线观看 | 国产精品99久久久久久大便 | 成人免费一区二区 | 一二三四在线视频观看社区 | 永久av| 国产三级国产精品 | av一级 | 91看片官网 | 亚卅毛片| 国产欧美精品一区二区三区 | 在线观看亚洲专区 | 欧美在线国产精品 | 久久久91精品国产一区二区三区 | 精品国产一区二区三区久久久四川 | 久久综合欧美 | 久久国产精品一区二区三区 | 久在线视频播放免费视频 | 国产高清免费视频 | 免费一级网站 | 久久精品国产99国产精品亚洲 | 免费国产视频在线观看 | 国产欧美一区二区三区另类精品 | 久久精品免费 | 亚洲高清成人在线 | 亚洲欧洲国产视频 | 久久av一区二区三区 | 国产精品精品3d动漫 | а_天堂中文最新版地址 | 精品一二区 | 国产精品一二区 | 欧美一级久久 | 日韩精品一区二区三区在线播放 | 久热精品在线播放 | 日韩有码一区 | 国产日韩欧美 | 亚洲精品久久久一区二区三区 | 日韩国产精品一区二区三区 | 精品中文在线 | 国产精品国产a级 | 亚洲精品中文字幕在线观看 |