上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: pclose(popen("/usr/bin/php /Applications/MAMP/htdocs/style/Script/task.php &", "r")); 阅读全文
posted @ 2016-04-05 16:40 smismile 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 服务端: 客户端挂载: 阅读全文
posted @ 2016-03-24 20:30 smismile 阅读(538) 评论(0) 推荐(0) 编辑
摘要: # git一份源代码到本地 git clone --depth=1 git://github.com/phalcon/cphalcon.git # 进入如下目录 cd cphalcon/build # vi install文件改成 /usr/local/php/bin/phpize && ./con 阅读全文
posted @ 2016-03-24 19:54 smismile 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 1. 安装svn客户端 2. svn客户端常用命令 阅读全文
posted @ 2016-03-21 10:52 smismile 阅读(148) 评论(0) 推荐(0) 编辑
摘要: cd /var # 复制SWAP文件块 4G = 512byte * 8000000 dd if=/dev/zero of=swapfile bs=512 count=8000000 # 让其生效 /sbin/mkswap swapfile # 进行swap文件激活 /sbin/swapon swapfile # 查看是否正确 cat /proc/swaps #添加到自启动 echo ... 阅读全文
posted @ 2016-03-19 22:01 smismile 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 以ThinkPHP为例: 阅读全文
posted @ 2016-03-16 23:02 smismile 阅读(732) 评论(0) 推荐(0) 编辑
摘要: str_replace(array('baidu.com/link', 'baidu.com/from', 'so.com/link', 'so.com/s', 'sm.cn/s', 'sogou.com/web', 'sogou.com/link'), '', $_SERVER['HTTP_REF 阅读全文
posted @ 2016-03-03 10:15 smismile 阅读(449) 评论(0) 推荐(0) 编辑
摘要: // 是否在ip区间 function in_ips($ip, $ips) { $ip = ip2long($ip); $ips[0] = ip2long($ips[0]); $ips[1] = ip2long($ips[1]); if ($ip >= $ips[0] && $ip <= $ips[ 阅读全文
posted @ 2016-02-05 23:35 smismile 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: 好用不解释 阅读全文
posted @ 2016-02-05 23:18 smismile 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 原因是mamp修改了mysql.sock的位置,指定一下就好了,也适用于thinkphp连不上的情况$config = array( 'database_type' => 'mysql', 'database_name' => 'dbname', 'server' => '127.... 阅读全文
posted @ 2016-01-20 10:47 smismile 阅读(467) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页