excel

phpExcel常用方法详解

操作excel

1.header

header(“Content-Type:application/vnd.ms-excel”);
header(“Content-Disposition:attachment;filename=product.xls”);
header(“Pragma:no-cache”);
header(“Expires:0”); (continue reading…)


phpToExcel

[code]php-excel.class.php

/**
* Simple excel generating from PHP5
*
* @package Utilities
* @license http://www.opensource.org/licenses/mit-license.php
* @author Oliver Schwarz * @version 1.0
*/ (continue reading…)


ExcelToPHP

example.php
[code]<?php
$allow_url_override = 1; // Set to 0 to not allow changed VIA POST or GET
if(!$allow_url_override || !isset($file_to_include))
{
$file_to_include = “test.xls”;
}
if(!$allow_url_override || !isset($max_rows))
{
$max_rows = 0; //USE 0 for no max
} (continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress