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
主站蜘蛛池模板: 亚洲精品99 | 日韩一区二区在线观看 | 一二三区视频 | 亚洲免费网站 | 毛片免费观看视频 | 在线色网站 | 免费黄视频网站 | 久色视频在线观看 | 国产精品一区在线观看你懂的 | 国产精品久久久久久久久 | 欧美一级艳情片免费观看 | 高清视频一区二区三区 | 国产成人免费视频网站视频社区 | 亚洲欧洲日本国产 | www.黄色在线观看 | 午夜在线影院 | 五月婷婷中文 | 久久成人一区 | 日韩羞羞 | 91成人| 亚洲午夜精品 | 欧美国产亚洲一区二区 | 免费视频99 | 岛国一区| 国产激情99| 色www精品视频在线观看 | 欧美日韩国产在线 | 日本a视频| 亚洲第一免费播放区 | 国产精品久久久久婷婷二区次 | 亚洲精品一区二区三区中文字幕 | 日韩电影一区二区三区 | 男人影音 | 在线欧美一区 | 成人免费福利视频 | 亚洲精品电影网在线观看 | 一级免费毛片 | 九九综合 | 亚洲精品www | 国产精品久久久久久久一区二区 | 欧美日韩一卡二卡 |