Post archive

Tag: Cache Control

  • PHP

    การ ให้ PHP Export ข้อมูล ออกเป็นไฟล์ exel

    การ ให้ PHP Export ข้อมูล ออกเป็นไฟล์ exel1. สร้างฟังก์ชั่นสำหรับใช้งานfunction xlsBOF() {echo pack(“ssssss”, 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);return;} function xlsEOF() {echo pack(“ss”, 0x0A, 0x00);return;} function xlsWriteNumber($Row, $Col, $Value) {echo pack(“sssss”, 0x203, 14, $Row, $Col, 0x0);echo pack(“d”, $Value);return;} function xlsWriteLabel($Row, $Col, $Value ) {$L = strlen($Value);echo pack(“ssssss”, 0x204, 8 + $L, $Row, $Col, 0x0, $L);echo $Value;return;}ฟังก์ชั่น xlsBOF […]

    READ MORE