上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页

2012年10月2日

This function ereg_replace() has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged

摘要: 碰到php升级到5.3.0后,function ereg_replace()被废除后的解决办法 $sefu = explode(",", ereg_replace( ' +', '', SEO_URLS_ONLY_IN ));改为:$sefu = explode(",", preg_replace( '/ +/', '', SEO_URLS_ONLY_IN )); 阅读全文

posted @ 2012-10-02 11:44 haven24 阅读(227) 评论(0) 推荐(0)

2012年9月29日

php实现301

摘要: $the_host = $_SERVER['HTTP_HOST'];//取得当前域名$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';//判断地址后面是否有参数 header('HTTP/1.1 301 Moved Permanently');//发出301头部header('Location: http://www.fkblog.org'.$request_uri);//跳转到目标 阅读全文

posted @ 2012-09-29 14:35 haven24 阅读(114) 评论(0) 推荐(0)

403 forbidden you don’t have permission to access / on this server

摘要: 转载自http://www.workle.cn/space.php?uid=1&do=blog&id=600配置完虚拟主机后提示403 forbidden you don’t have permission to access / on this server相当郁闷的分享给大家几个解决方法1、chmod +x 你的虚拟主机目录2、检查你的配置文件是否没有对应好该域名导致访问到默认的虚拟空间中 阅读全文

posted @ 2012-09-29 00:35 haven24 阅读(236) 评论(0) 推荐(0)

2012年9月28日

linux日志路径

摘要: whm:/usr/local/apache/logs/error_logda:/var/log/httpd/error_log 阅读全文

posted @ 2012-09-28 10:44 haven24 阅读(261) 评论(0) 推荐(0)

2012年9月27日

《linux iptables使用入门》(转载)

摘要: 1)iptables的概述.netfilter/iptables是在linux 2.4及后继版本的内核中集成的一种服务..netfilter/iptables工作在OSI七层模型的2,3层..netfilter/iptables由netfilter组件和iptables组件构成,其中netfilter组件集成在内核的一部分,由一些信息包过滤表组成,这些表包含内核用来控制信息包过滤处理的规则集.模块位于/lib/modules/$(uname -r)/kernel/net/netfilter/,iptables组件是一种工具,它运行于用户空间,它使插入,修改和除去信息包过滤表中的规则变得容易.2 阅读全文

posted @ 2012-09-27 16:15 haven24 阅读(2011) 评论(0) 推荐(0)

2012年9月23日

Kloxo Change Password via SSH

摘要: 1. Change root password:su - rootpasswd2. Mysql root password: --> ERROR 1045 (28000): Access denied for user 'root'@'localhost'service mysqld stopmysqld_safe --skip-grant-tables &mysql -u rootmysql>mysql> use mysql;mysql> UPDATE user SET Password = PASSWORD ('you 阅读全文

posted @ 2012-09-23 11:31 haven24 阅读(321) 评论(0) 推荐(0)

2012年9月20日

Kloxo add user command line

摘要: /script/add --parent-class=client --parent-name=teacher --class=client --name=testme --v-plan_name=f3___client-teacher --v-type=customer --v-password=password --v-dnstemplate_name=stserver.dnst --v-domain_name=testme.com --v-val=customer–parent-name 是上級的reseller,class就是客戶級,name就是用戶名稱,plan_name一定要在re 阅读全文

posted @ 2012-09-20 16:39 haven24 阅读(142) 评论(0) 推荐(0)

2012年9月18日

zen cart模板 在Define Page Editer中怎么添加新页面

摘要: 对于zen-cart模板,原文件中保留有page_2.php, page_3.php 和 page_4.php三个文件方便自己定义页面.个人建议先是在这三个文件的基础上改, 出于seo url考虑, 需要把以下相应地方的地方作修改:includes/filenames.phpdefine(‘FILENAME_DEFINE_PAGE_2′, ‘define_page_2′);define(‘FILENAME_DEFINE_PAGE_3′, ‘define_page_3′);define(‘FILENAME_DEFINE_PAGE_4′, ‘define_page_4′);includes/lan 阅读全文

posted @ 2012-09-18 16:35 haven24 阅读(450) 评论(0) 推荐(0)

2011年8月7日

由于网站数据过大,导致内存不足。终于找到解决办法

摘要: 解决办法:清空 seo_cache (TRUNCATE seo_cache)在/includes/classes/seo.install.php中的前面加入链接数据库代码如下:$server = 'localhost';$link = mysql_connect($server, 'haven', '');$result = mysql_select_db('haven')or die("haven database does not exist");$sql="TRUNCATE seo_cache& 阅读全文

posted @ 2011-08-07 14:07 haven24 阅读(419) 评论(0) 推荐(0)

2011年3月18日

Step-by-step guide to installing the Automatic Image Slider w/ CSS & jQuery from Soh Tanaka in Zen Cart

摘要: http://www.kerrinhardy.com/2011/02/10/step-by-step-guide-to-installing-the-automatic-image-slider-w-css-jquery-from-soh-tanaka-in-zen-cart/Step 1 – Prepare imagesThe first step is to prepare the images you want to use in the slider. The images should all be the same dimensions (exactly) and optimise 阅读全文

posted @ 2011-03-18 16:23 haven24 阅读(346) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页

导航