作者存档

function phpescape($str){     preg_match_all(“/[\x80-\xff].|[\x01-\x7f]+/”,$str,$newstr);     $ar = $newstr[0];     foreach($ar as $k=>$v){         if(ord($ar[$k])>=127){             $tmpString=bin2hex(iconv(“GBK”,”ucs-2″,$v));             if (!eregi(“WIN”,PHP_OS)){                 $tmpString = substr($tmpString,2,2).substr($tmpString,0,2);             }             $reString.=”%u”.$tmpString;         } else {             $reString.= rawurlencode($v);         }     }     return $reString; }   //该方法在某些linux系统下, //会因为iconv的php版本问题 //造成该函数方法无法正常使用 //使用前请测试先 function phpescape($str) {   preg_match_all(“/[€-ÿ].|[-]+/”,$str,$r);   $ar = [...]

2007年6月29日09:40 | 没有评论
分类: 未分类
标签:

在php最前面加上: ini_set(‘display_errors’,true); error_reporting(E_ALL);

2007年6月28日10:21 | 没有评论
分类: 未分类
标签:

头部加入 $GLOBALS['now'] = gmdate(‘D, d M Y H:i:s’) . ‘ GMT’; header(‘Expires: 0′); // rfc2616 – Section 14.21 header(‘Last-Modified: ‘ . $GLOBALS['now']); header(‘Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0′); // HTTP/1.1 header(‘Pragma: no-cache’); // HTTP/1.0

2007年6月14日06:26 | 没有评论
分类: 未分类
标签:

开源php企业网站程序。 网站使用:php+adodb+smarttemplate+access(mdb) 网站演示:http://www.hzcnnet.com 支持:http://www.tsingfeng.com/article.asp?id=494 后台:admin/Admin_login.php admin文件夹可以改名 id/password:admin/admin 编辑器为ewebeditor4.0 无后门,无病毒,无私奉献。 hzcnnetfinal.rar

2007年6月7日14:57 | 没有评论
分类: 未分类
标签:

  <? /**   * 捕获一个函数的输出   * example:get_output(array($this,’test’)); */ function get_output($array) {    ob_start();    call_user_func($array);    return ob_get_clean(); } ?>    

2007年6月5日10:43 | 没有评论
分类: 未分类
标签:
第 10 页,共 68 页« 最新...89101112203040...最旧 »