03 2013 档案
摘要:function nocache_headers() {@ header('Expires: Thu, 01 Jan 1970 00:00:01 GMT');@ header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');@ header('Cache-Control: no-cache, must-revalidate, max-age=0');@ header('Pragma: no-cache');}nocache_headers
阅读全文
摘要:MySQL 5中,出现错误提示:Field 'id' doesn't have a default value解决方法一:打开my.ini,查找sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"修改为sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"然后重启MYSQL解决方法二:MySQL 5 uses a strict mode which needs to be disable
阅读全文
摘要:tar [-cxtzjvfpPN] 文件与目录 ....参数:-c :建立一个压缩文件的参数指令(create 的意思);-x :解开一个压缩文件的参数指令!-t :查看 tarfile 里面的文件!特别注意,在参数的下达中, c/x/t 仅能存在一个!不可同时存在!因为不可能同时压缩与解压缩。-z :是否同时具有 gzip 的属性?亦即是否需要用 gzip 压缩?-j :是否同时具有 bzip2 的属性?亦即是否需要用 bzip2 压缩?-v :压缩的过程中显示文件!这个常用,但不建议用在背景执行过程!-f :使用档名,请留意,在 f 之后要立即接档名喔!不要再加参数! 例如使用『 ta..
阅读全文
摘要:<?php/************************************威盾PHP加密专家解密算法 By:Neeao*http://Neeao.com*2009-09-10***********************************/$filename="install.php";//要解密的文件$lines = file($filename);//0,1,2行//第一次base64解密$content=""; if(preg_match("/O0O0000O0\('.*'\)/",$lin
阅读全文
摘要:最近发现服务器的时间有偏差,所以就修复了服务器的时间。方法很简单,先用ssh连接你的服务器,然后:修改日期:date -s 05/10/2009修改时间:date -s 10:18:00根据当前的时间修改即可。当然,你也可以同步时间:ntpdate pool.ntp.org转自:http://www.lupaworld.com/article-215597-1.html
阅读全文