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

PHP Log Class

ob_start();
echo "<pre>";
print_r($content);
echo "</pre>";
$a=ob_get_contents();
$filename = $_SERVER['DOCUMENT_ROOT']."/log-".date("Y-m-d").".txt";
$file = fopen($filename, "a");
$tipmsg = "\r\n******Final File: "
//.end(explode('/',$_SERVER['PHP_SELF']))
.$_SERVER['PHP_SELF']
."\r\n******Code Container: "
.str_replace("\\","/",substr(__FILE__,strlen($_SERVER['DOCUMENT_ROOT'])))
."\r\n******Time: "
.date("Y-m-d H:i:s")."\r\n\r\n";
fwrite($file, $a.$tipmsg);
fclose($file);
ob_end_clean();


相关文档:

php学习笔记(2)

php配置太复杂了,昨天晚上配置了半天还没有成功!不得不寻求更简单的解决方法:WampServer 5 集成环境
Wamp5是Apache+PHP+Mysql 在Windows下的集成环境,拥有简单的图形和
菜单安装。该版本集成了PHP5.2.5 Mysql5 Apache2 phpMyAdmin 2.11.2.1
SQLiteManager 1.2.0 满了大部分PHPer的需求.
从语法上看,PHP语言近似于C语 ......

PHP中正则表达式的使用方法[笔记]

在学习php时,看到的,做个笔记
字符串头部:^
<?php echo ereg(“^hello”,”hello world!”); ?>
 
字符串尾部:$
<?php echo ereg(“bye$”,”goodbye”); ?>
 
任意的单个字符:.
<?php echo ereg(“.”,”goodbye”); ......

php实现注释的删除【支持//,/*,/**】

<?php
 $fileName="function.js";
 $file=fopen($fileName,"r");
 
 $writeStr="";
 $flag=false;//判断是否有/***/标准
 while($strLine=fgets($file))
 {
  if(stripos($strLine,"/*")===false || stripos($strLine,"/**")===false)
  {
 &nbs ......

Windows下安装最新的Apache+PHP+MySQL指南



   此文章的安装方法适用于Windows XP
下的Apache+PHP+MySQL
安装,同时也适用于Windows 2003
系统下的安装和配置。
1.
安装环境
操作系统是 Windows XP
中文版, Apache,
PHP, MySQL
的最新版本是截止到 2007.09.07
,分别在其官网下载的:
* Apache 2.2.6
:http://apache.mirror.phpchina.c ......

php 不用COM 生成excel文件

用php生成excel文件
<?
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号