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

PHP创建excel文件简单的方法

<?php
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=php100.xls");

/* echo "A1\t B1\t C1\n";
echo "A1\t B1\t C1\n";
echo "A1\t B1\t C1\n";
*/
?>
<!--*********************************************报表****************************************************-->
<table width="444" height="155" border="1">
<tr>
<td><font color=red>报表</font></td>
</tr>
<tr>
<td>姓名</td>
<td>年龄</td>
<td>性别</td>
</tr>
<tr>
<td>张三</td>
<td>20</td>
<td>男</td>
</tr>
<tr>
<td>李四</td>
<td>21</td>
<td>女</td>
</tr>
<tr>
<td>王五</td>
<td>22</td>
<td>男</td>
</tr>
<tr>
<td>齐迹</td>
<td>23</td>
<td>女</td>
</tr>
</table>
<!--*************************************************************************************************-->


相关文档:

php分页

<?php
//分页
$link=mysql_connect("localhost","root","root");
$db=mysql_select_db("bustest",$link);
$res=mysql_query("select * from info");
//一共多少条
$count=mysql_num_rows($res);
//每页5条信息
$perpage=5;
//一共多少页
$pagecount=ceil($count/$perpage);
//传过来的页数
$pagenum=$_REQUE ......

PHP中的stristr(),strstr(),strpos()速度比较


PHP中的stristr(),strstr(),strpos()速度比较

测速代码:

<?php
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
......

php二位数组排序

<?php
$array[] = array("id"=>20,"name"=>"li");
$array[] = array("id"=>21,"name"=>"ai");
$array[] = array("id"=>20,"name"=>"ci");
$array[] = array("id"=>22,"name"=>"di");
 
foreach ($array as $key=>$value){
 $age[$key] = $value['id'];
 
}
array_ ......

php配置文件php.ini 中文版1

; 本文并非是对英文版 php.ini 的简单翻译,而是参考了众多资料以后,结合自己的理解,增加了许多内容,
; 包括在原有 php.ini 基础上增加了一些实用模块的配置说明,同时对文件内容的安排进行了调整。
; 由于作者不喜欢 no-free 的玩意儿,所以删除了除 MySQL 和 PostgreSQL 以外的其他数据库模块配置选项。
;;;;;;;;;; ......

php测试用户网速

首先创建将传输给用户的数据文件。这个文件可以有任何内容,不用担心,因为用户永远都看不到这个文件。我们考虑生成大量文本并写入到文件来创建此文件。例如下边的脚本将生成一个大约1500KB的文本文件。(暂只提供这个思路,具体略..)
<?php
/*=====http://hi.csdn.net/yinyiniao=====*/
$fp=fopen("cs.txt","w");
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号