PHP5.3 ZendOptimizer

19 5 条评论

从PHP5.3.x开始Zend Guard 将代替ZendOptimizer:


从PHP5.3k开始Zend Guard将取代Zend Optimizer~下载安装Zend Guard
实际上不用装Zend Guard了 直接下载LOADER就可以了
下好之后扔进usr/local/zend/ 修改php.ini就可以了~和以前的Zend Optimizer一样

地址:http://forums.zend.com/viewtopic.php?f=57&t=6595

运行的接过还是很让人无奈的应该是文件加密的版本太低了 出现下面的错误


Fatal error: Incompatible file format: The encoded file has format major ID 1, whereas the Loader expects 4 in

XP中毒 现在使用ubuntu

01

中毒了感染到各个盘,杀不尽,清不绝;开机一段时间后内存耗尽而死!!

没办法~开始使用ubuntu~

笔记本要关闭触摸板,方法如下:

trylife@ubuntu:~$ sudo -i
[sudo] password for trylife:
root@ubuntu:~# sudo modprobe -r psmouse
root@ubuntu:~#

gedit打开GBK文件乱码 处理方法如下

trylife@ubuntu:~$ gconf-editor
运行之后弹出一个对话框;

左边的位置选择:/apps/gedit-2/preferences/encodeings/

右边的设置如图

ECMS e/class/connect.php to_time() 时间转换为UNIX时间戳

26

e/class/copypath.php 用于创建和复制目录

24
wm_chief_createpath($n_path);
                }

                $i=0;
                while($file=@readdir($hand)){
                        $i++;
                        if ($file!="."&&$file!=".."){

                                //目录
                                if(is_dir($o_path."/".$file)){
                                        $o_s_path=$o_path."/".$file;
                                        $n_s_path=$n_path."/".$file;
                                        $this->wm_chief_copypath($o_s_path,$n_s_path);
                                }
                                else{
                                        $o_file=$o_path."/".$file;
                                        $n_file=$n_path."/".$file;
                                        $this->wm_chief_copyfile($o_file,$n_file);
                                }
                        }
                }

                @closedir($hand);
                return  true;
        }

        /*copy() PHP自带函数用于拷贝文件*/
        function  wm_chief_copyfile($o_file,$n_file){
                @copy($o_file,$n_file);
        }
        /*
        mkdir() PHP自带函数用于创建目录
        chmod() PHP自带函数用于改改读写权限 貌似是mkdir()创建完目录权限不一定落实 所以补了个chmod()
        */
        function  wm_chief_createpath($n_path){
                @mkdir($n_path,0777);
                @chmod($n_path,0777);
        }
}
//本程序由wm_chief原创,如要转载,请注明作者与来源(http://www.phome.net)
?>

/e/class/CheckClassLevel.php 栏目前台查看权限检测文件

24

下面是正常HTML网页代码内容
---------------------------------------------------------------------------------------

*/

/*
1.defined() 函数检查某常量是否存在;
2.exit();执行后下面的代码将不再执行
3.引用此文件的动态页面不能被其他程序所引用
*/
if(!defined('empirecms'))
{
        exit();
}
//扣点
require_once($check_path."e/class/connect.php");

/*同上defined*/
if(!defined('InEmpireCMS'))
{
        exit();
}
require_once(ECMS_PATH."e/class/db_sql.php");
require_once(ECMS_PATH."e/class/user.php");
require_once(ECMS_PATH.'e/data/dbcache/MemberLevel.php');

/*
所要看的栏目ID
需要的最低用户组ID
设置需要权限的动态页面直接传参得到
*/
$check_classid=(int)$check_classid;
$check_groupid=(int)$check_groupid;

/*
1.返回页面地址
2.$_SERVER['PHP_SELF'] 得到当前执行脚本的绝路径文件名
3.例如:http://www.phome.net/some/text.php 会得到/some/text.php
*/
$toreturnurl=$_SERVER['PHP_SELF'];        

/*
$eloginurl 登陆地址
/e/class/user.php
*/
$gotourl=$eloginurl?$eloginurl:$public_r['newsurl']."e/member/login/";        //登陆地址

/*
1.getcvar() 自定义函数用于取得登陆信息
2.定义:e/class/connect.php
3.getcvar('mluserid')登陆ID
4.getcvar('mlgroupid')登陆用户组ID
*/
$loginuserid=(int)getcvar('mluserid');
$logingroupid=(int)getcvar('mlgroupid'); 

/*
1.printerror2()函数定义在/e/class/connect.php
2.用于直接打印提示信息
3.如果登录ID为FLASE 也就是说用户没有登录
3.$level_r 读取缓存文件中数组/e/data/dbcache/MemberLevel.php

*/
if(!$loginuserid)
{
        printerror2("本栏目需要 ".$level_r[$check_groupid][groupname]." 会员级别以上才能查看","");
}
if($level_r[$logingroupid][level]<$level_r[$check_groupid][level])
{
        printerror2("本栏目需要 ".$level_r[$check_groupid][groupname]." 会员级别以上才能查看","");
}
?>