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 | 久久综合一区 | 国产日本精品视频 | www.788.com色淫免费 | 亚洲精品久久久一区二区三区 | 亚洲一区 | 久久久久久久久久久成人 | 午夜小视频在线播放 | 久久精品国产亚洲 | 成人欧美一区二区三区视频xxx | 成人在线一区二区三区 | 91精品国产综合久久婷婷香蕉 | 日本黄色影片在线观看 | 超碰8| 日本粉嫩一区二区三区视频 | 老牛嫩草一区二区三区av | 成人午夜视频在线观看 | 国产高清精品一区二区三区 | 国产免费视频 | 天堂在线中文字幕 | 欧美日韩综合一区 | 亚洲天堂一区二区 | 天天操操操操操 | 国产精品一区二区三区免费观看 | 久操伊人| 免费高清av | av网站在线播放 | 久久99精品久久久久久青青日本 | 欧美一级片久久 | 亚洲午夜精品视频 | 美女久久久久久久 | 三区在线观看 | 玖玖在线精品 | www免费视频| 日本在线视频一区二区 | 91久久久久久久久久久 | 免费国产一区二区 | 一区二区高清不卡 | 中文一区 | 日韩午夜精品 | 亚洲精品黄色 |