上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页
摘要: 一、安装nginx时必须先安装相应的编译工具 yum -y install gcc gcc-c++ autoconf automake yum -y install zlib zlib-devel openssl openssl-devel pcre-devel 建立nginx 组 groupadd -r nginx useradd -s /sbin/nologin -g nginx -r nginx id nginxzlib:nginx提供gzip模块,需要zlib库支持openssl:nginx提供ssl功能pcre:支持地址重写rewrite功能二、tar -zxvf nginx-1.2 阅读全文
posted @ 2013-04-13 15:46 为了这有限的生命 阅读(31318) 评论(2) 推荐(1)
摘要: 1.htmlspecialchars 过滤if ( ! function_exists('html_escape')){ function html_escape($var) { if (is_array($var)) { return array_map('html_escape', $var); } else { return htmlspecialchars($var, ENT_QUOTES, config_item('charset')); } }} 阅读全文
posted @ 2013-04-01 11:07 为了这有限的生命 阅读(451) 评论(0) 推荐(0)
摘要: http://laoxu.blog.51cto.com/4120547/1159991昨天详细讲解了如何修改nginx的header信息从而伪装nginx版本信息,apache也可以做相应的修改,如果访问一个不存在url则会如图显示操作系统信息、apache版本信息,同样会带来不安全的因素修改/etc/httpd/conf/httpd.conf文件中的两处重新启动apache再访问那个不存在的url路径发现操作系统信息和apache的版本信息都已经被隐藏了,这样就可以在一定程度上保护了服务器的安全性。 阅读全文
posted @ 2013-03-26 16:24 为了这有限的生命 阅读(387) 评论(0) 推荐(0)
摘要: 总结,int(M) zerofill,加上zerofill后M才表现出有点点效果,比如int(3) zerofill,你插入到数据库里的是10,则实际插入为010,也就是在前面补充加了一个0.如果int(3)和int(10)不加zerofill,则它们没有什么区别.M不是用来限制int个数的.int(M)的最大值和最小值与undesigned有关,最下面那副图有说明.mysql> create table t (t int(3) zerofill);Query OK, 0 rows affected (0.00 sec)mysql> insert into t set t = 10 阅读全文
posted @ 2013-03-12 17:43 为了这有限的生命 阅读(1092) 评论(0) 推荐(0)
摘要: http://hi.baidu.com/esuyidxhyybckrq/item/e35f390212b013e334990207php session丢失php session丢失动态网页PHP2009-10-16 11:47:02 阅读234 评论0 字号:大中小抛开cookie使用sessionPHP中SESSION不能跨页传递问题的解决办法在PHP中使用过SESSION的朋友可能会碰到这么一个问题,SESSION变量不能跨页传递。这令我苦恼了好些日子,最终通过查资料思考并解决了这个问题。我认为,出现这个问题的原因有以下几点:1、客户端禁用了cookie2、浏览器出现问题,暂时无法存取c 阅读全文
posted @ 2013-03-08 10:21 为了这有限的生命 阅读(337) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-02-19 10:53 为了这有限的生命 阅读(178) 评论(0) 推荐(0)
摘要: http://blog.sina.com.cn/s/blog_672b419f0101b6kj.htmlgvim配置http://blog.csdn.net/bokee/article/details/6633193众所周知,vim是一款开源,最重要的是非常非常好用的编辑器。以前我喜欢使用notepadd++,也非常不错,启动非常快,打开非常快,插件丰富,高亮不同颜色关键字显示。最近在windows上也想使用vim了。也在网上看了不少帖子和文章都是询问如何在gVim上安装ZenCoding插件的。我这里将我的经验完整贴出来,希望能够帮到广大有问题的网友。第一步:下载vim(去官网)官网下载页面 阅读全文
posted @ 2013-02-01 10:06 为了这有限的生命 阅读(441) 评论(0) 推荐(0)
摘要: html.class.php/** * 更新首页 */ public function index() { if($this->siteid==1) { $file = PHPCMS_PATH.'index.html'; //添加到发布点队列 $this->queue->add_queue('edit','/index.html',$this->siteid); } else { $site_dir = $this->sitelist[$this->siteid]['dirname']; $fi 阅读全文
posted @ 2013-01-19 11:08 为了这有限的生命 阅读(194) 评论(0) 推荐(0)
摘要: /** * 模板调用 * * @param $module * @param $template * @param $istag * @return unknown_type */function template($module = 'content', $template = 'index', $style = '') { if(strpos($module, 'plugin/')!== false) { $plugin = str_replace('plugin/', '', $module) 阅读全文
posted @ 2013-01-18 09:13 为了这有限的生命 阅读(710) 评论(0) 推荐(0)
摘要: 例如访问地址 localhost/phpcmsindex.html chmod 777 index.htmlcaches/ chmod -R 777 cacheshtml/ chmod -R 777 htmluploadfile/ chmod -R 777 uploadfilephpsso_server/caches/ chmod -R 777 phpsso_server/cachesphpsso_server/uploadfile/chmod -R 777 phpsso_server/uploadfile网站根目录 chmod 777 phpcms (注意这里没有 -R) 阅读全文
posted @ 2013-01-08 13:58 为了这有限的生命 阅读(368) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页