PHP 导出excel 简单代码

9-14 1,647 views

<?php
    header("Content-type:application/vnd.ms-excel");
    header("Content-Disposition:filename=csat.xls");
    $str = "<table border=1><tr>";
    $str .= "<th>id</th><th>name</th><th>data</th>";
    $str .= "</tr>";
    $str .= "<tr>";
    $str .= "<td>1</td>";
    $str .= "<td>ceshi</td>";
    $str .= "<td>2015-09-14</td>";
    $str .= "</tr>";
    $str .= "</table>";
    echo $str;
    exit;

yum 安装redis5

更新yum源 # EPEL的全称叫 Extra Packages for Enterprise Linux 。EPEL是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质...

阅读全文

nginx 解析php conf配置文件

本博客的nginx 配置文件 server { listen 80;#80和443端口同时监听 listen 443 ssl; server_name www.koukousky.com koukousky.com...

阅读全文

php composer 安装阿里云镜像

#doc: https://developer.aliyun.com/composer 全局配置(推荐) composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ 取消配...

阅读全文

欢迎留言