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

简单的计算php页面处理时间

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

//例子 
//开始 
$time_start = getmicrotime();  
//这里放你的代码 
//结束 
$time_end = getmicrotime(); 
$time = $time_end - $time_start; 
echo "Did nothing in $time seconds"; //输出运行总时间 
?>


相关文档:

PHP数据结构——冒泡排序与快速排序的比较

//冒泡排序(数组中实现)
function bubble_sort($arr) {
$cnt = count($arr);
if($cnt<=0) return false;
for($i=0; $i<$cnt;$i++) {
for($j=$cnt-1; $j>$i;$j--) {
if($arr[$j]<$arr[$j-1]) {
$tmp = $arr[$j];
$arr[$j] = $arr[$j ......

php分页函数

<?php
function page ( $totalPage , $currentPage,$url ,$halfPer=5)
{
$total=$totalPage-1;
$re="<td><a href="\" mce_href="\""$url\" onclick=\"page=prompt('共{$totalPage}页\\n自定义跳转到第几页:','');if(page>0&&page<$total)location.href=this.href+'='+(page-1);r ......

php生成扭曲及旋转的验证码图片

<?php
function make_rand($length="32"){//验证码文字生成函数
$str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
$result="";
for($i=0;$i<$length;$i++){
$num[$i]=rand(0,61);
$result.=$str[$num[$i]];
}
return $result;
} ......

深入解析php模板技术原理【一】

1、模板的由来
在没有模板技术之前,使用PHP开发程序,通常都是php代码和html混编在一起。比如说新闻列表,很可能就是一个newslist.php页面,结构如下:
<?
//从数据库中读取出要显示的新闻记录
?>
<html>
<head>……..
</head>
<body>
<?
While ($news ......

Apache不支持php的原因?

安装完php 和 apache后,如果apache 不支持 php
1.apache中没有 php加载模块。
在httpd.conf中加入。
LoadModule php5_module "c:/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
如果 不能正常启动apache 可能是apache版 本的事。可以修改 LoadModule php5_module "c:/php5/php5apache2_2.dll"
&n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号