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
主站蜘蛛池模板: 午夜爽爽爽男女免费观看影院 | 91视频久久 | 欧美精品一区二区在线观看 | 免费观看黄色一级片 | 天堂一区| 一二三在线视频 | 亚洲婷婷一区 | 亚洲日本中文 | 免费国产视频 | 亚洲精品成人av久久 | 伊人操| 国产一区久久 | 亚洲精品一区二区在线 | 国产福利在线免费观看 | 国产精品精品久久久 | 日韩人体视频 | 欧美自拍视频 | 亚洲 欧美 日韩 精品 | 人人性人人性碰国产 | 久久综合一区二区三区 | 亚洲精品成人 | 91久久久久久久久久久久久 | 国产精品久久久久久久久图文区 | 国产精品免费观看 | 五月婷婷色 | 成人免费高清 | 找个黄色片| 99精品在线| 热99在线| 欧洲一区二区三区 | 国产一区三区在线 | 欧美日日| 麻豆久久久 | 最近中文字幕第一页 | 成人国产免费视频 | 亚洲一区欧美 | 日韩精品无码一区二区三区 | 国产在线精品一区二区三区 | 精品国产一区二区在线 | gogo肉体亚洲高清在线视 | 国内精品久久久久久影视8 最新黄色在线观看 |