易截截图软件、单文件、免安装、纯绿色、仅160KB

PHP生成EXCEL,可区分数值与字符串

这是个在别人的基础上做修改的代码,添加了 判断单元格值是否为数值,是的话,将该单元格的类型转成 Number,避免生产的EXCEL中没法进行数值的加减。。。
<?php
/**
* Simple excel generating from PHP5
*
* This is one of my utility-classes.
*
* The MIT License
*
* Copyright (c) 2007 Oliver Schwarz
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* from, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
* @package Utilities
* @author Oliver Schwarz <oliver.schwarz@gmail.com>
* @version 1.0
*/
/**
* Generating excel documents on-the-fly from PHP5
*
* Uses the excel XML-specification to generate a native
* XML document, readable/processable by excel.
*
* @package Utilities
* @subpackage Excel
* @author Oliver Schwarz <oliver.schwarz@vaicon.de>
* @version 1.0
*
* @todo Add error handling (array corruption etc.)
* @todo Write a wrapper method to do everything on-the-fly
*/
class MyClass_ExcelXML
{
/**


相关文档:

PHP学习

由于某种需要,这一段需要学习PHP,所以在这类记录一下自己的一些心得和自己在学习中遇到的一些问题。(更新中...)
1.Linux和windows下开发PHP
在这两种系统下开发PHP都需要搭建环境,在Linux下一版用apache作为web服务器,而且相对来说环境的搭建很简单;而在windows下要是开发PHP建议用windows server 2003,windows x ......

php 几种排序方式

1.冒泡排序
function m_sort($arr)
{
    $l = count($arr);
    if($l==0) return false;
  
    for($i=0;$i<$l-1;$i++)
    {
        for($j=$i+1;$j<$l-1;$j++)
     ......

php curl的几个例子

使用PHP的cURL库可以简单和有效地去抓网页。你只需要运行一个脚本,然后分析一下你所抓取的网页,然后就可以以程序的方式得到你想要的数据
了。无论是你想从从一个链接上取部分数据,或是取一个XML文件并把其导入数据库,那怕就是简单的获取网页内容,cURL 是一个功能强大的PHP库。
PHP中的CURL函数库(Client URL Librar ......

推荐几款国内优秀的PHP开源建站程序

国外的开源技术也影响和推动了国内开源程序的发展,国外优秀开源PHP建站程序一览中,很多国外开源程序并不太符合中国人的使用习惯,而国内有一些厂家或个人也做了一些不错的产品,不少程序是提供源代码下载的,虽然有些在许可协议上和开源许可证有些出入,但其在使用上还是挺符合中国人的使用习惯,今天我就介绍一些国内的PHP&rdqu ......

PHP向一个字符串随机添加文字

 很久前在baidu回答问题时写的“向一个字符串随机添加文字”的解决方案,可以支持中英文
<?php
/*********************************************************
 describe:字符串处理,可以处理中英文
 function:向一个字符串随机添加文字
 author:  etongchina
 email2m ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号