-
Oct242014
之前配置nginx 301重定向一直遇到问题,今天终于解决了
这是一个正确的代码:
if ($host = 'www.guakao580.com') {
rewrite ^/(.*)$ http://www.580gk.cn/$1 permanent;
}
if ($host = 'guakao580.com') {
rewrite ^/(.*)$ http://www.580gk.cn/$1 permanent;
}
错误示例: if ($host == ‘www.guakao580.com’ || $host ==[......]
Read more
阅读全文
-
Oct152014
数据结构:
打印如下:
array(7) {
[0] => array(5) {
["id"] => string(1) "4"
["fzname"] => string(12) "山猫小号"
["userid"] => string(2) "12"
["pid"] => string(1) "0"
["time"][......]
Read more
阅读全文
作者:admin | 分类:
php | 阅读: |
-
Oct152014
PHP程序员的技术成长规划
作者:黑夜路人(2014/10/15)
按照了解的很多PHP/LNMP程序员的发展轨迹,结合个人经验体会,抽象出很多程序员[......]
Read more
阅读全文
-
Oct112014
昨天 CecOS 发布了 1.4 正式版本(详情),同时也宣布了 CecOS 项目正式全面开源。
CecOS 源码分成两部分,分别是:
cecos.node -> http://git.oschina.net/openfans.org/cecos.node
cec[......]
Read more
阅读全文
作者:admin | 分类:
互联网关注 | 阅读: |
-
Oct102014
主:
配置my.conf
log-bin=mysql-bin
server-id = 1
binlog-do-db=xxx_com
binlog-do-db=xxx_com
binlog-do-db=xxx_com
binlog-do-db=xxx_com
binlog-do-db 是允许同步的数据库。一行一个。
SHOW MASTER STATUS
mysql-bin.000001 4658 下面设置从库要用 change master to
然后导数据到从库。
新建一个可让从库访问的账号。
grant replication[......]
Read more
阅读全文
-
Oct092014
WP博客伪静态,万能伪静态:
rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
if (!-e $request_filename) {
rewrite ^.+?(/wp-.*) $1 last;
rewrite ^.+?(/.*\.php)$ $1 last;
rewrite ^ /index.php last;
}
电商网站的自定义伪静态
rewrite ^/index_(hot|new)(_(\d+))?.html$ /index.php?ac=inde[......]
Read more
阅读全文
-
Oct082014
还不清楚具体有啥用,只知道可以检查一个软件是否安装。比如: rpm -qa |grep rsync
-i, --install install package(s)
-v, --verbose provide more detailed output
-h, --hash print hash marks as package installs (good with -v)
-e, --erase erase[......]
Read more
阅读全文
作者:admin | 分类:
linux | 阅读: |
-
Sep302014
用php开发了一个SEO网址提交工具。看图:
主要是用于统计每个员工的SEO情况和得分情况。按月评结算得分。目前要优化的域名是580gk.cn所以就是如图这样咯。
阅读全文
作者:admin | 分类:
php,
SEO | 阅读: |
-
Sep302014
最近新做的一个网站: http://fj.580gk.cn/
网站名称:580建筑英才网
是一个分类信息网站,使用的是齐博cms二次开发,我个人历时一个月时间做好所有服务器搭建,前后端开发工作。现在在做SEO。祝我们成功吧!
阅读全文
作者:admin | 分类:
齐博cms | 阅读: |
-
Sep302014
方法1php自带函数(parse_url)
$Url=’http://shanmao.me/index.html’;
$tempu=parse_url($Url);
$message=$tempu['host'];
echo $message;
//输出结果就是 shanmao.me
方法2自定义函数
function get_domain($url)
{
$pattern = "/[/w-]+/.(com|net|org|gov|biz|com.tw|com.hk|com.ru|net.tw|net.hk|net.ru|info|cn[......]
Read more
阅读全文
作者:admin | 分类:
php | 阅读: |