摘要:
pclose(popen("/usr/bin/php /Applications/MAMP/htdocs/style/Script/task.php &", "r")); 阅读全文
摘要:
服务端: 客户端挂载: 阅读全文
摘要:
# git一份源代码到本地 git clone --depth=1 git://github.com/phalcon/cphalcon.git # 进入如下目录 cd cphalcon/build # vi install文件改成 /usr/local/php/bin/phpize && ./con 阅读全文
摘要:
1. 安装svn客户端 2. svn客户端常用命令 阅读全文
摘要:
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 ... 阅读全文
摘要:
以ThinkPHP为例: 阅读全文
摘要:
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 阅读全文
摘要:
// 是否在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[ 阅读全文
摘要:
好用不解释 阅读全文
摘要:
原因是mamp修改了mysql.sock的位置,指定一下就好了,也适用于thinkphp连不上的情况$config = array( 'database_type' => 'mysql', 'database_name' => 'dbname', 'server' => '127.... 阅读全文