午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

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

php生成EXCEL的東東

瀏覽:147日期: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
主站蜘蛛池模板: 久久视频在线观看 | 97色在线 | 免费久久精品视频 | 欧美日韩免费在线 | 精品久久国产视频 | 亚洲精选av| 国产永久av | 91久久精品视频 | av毛片网站 | 天天操网 | 亚洲成网站 | 黄色一区二区三区四区 | 亚洲一级理论片 | 亚洲伦理一区二区三区 | 久久免费视频观看 | 中文日韩在线观看 | 国产成人一区二区三区影院在线 | 亚洲视频在线免费观看 | 黄色男女视频 | 久久久久久久福利 | 精品国产99 | 久久久久久一区二区三区 | 国产精品久久久久久久妇 | 中文字幕观看 | 黄色录像网址 | 欧美人成在线 | 亚洲毛片网站 | 国产又黄又粗又猛又爽的 | 四虎影视av | 免费播放毛片 | 四虎影院在线 | 午夜激情网址 | 亚洲天堂国产精品 | 色爽女 | 人人综合 | 91麻豆精品成人一区二区 | 欧美成人一区二区三区 | 亚洲成人观看 | 亚洲久热 | 成年人在线观看视频网站 | www.国产91 |