摘要:
转载自: http://demon.tw/programming/javascript-sprintf.html 1 function str_repeat(i, m) { 2 for (var o = []; m > 0; o[--m] = i); 3 return o.join(... 阅读全文
摘要:
编辑如下区段:location ~ [^/]\.php(/|$) { # comment try_files $uri =404; to enable pathinfo try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; incl... 阅读全文
摘要:
vmware开机自动启动, 可以使用vmrun命令.1. 首先在“我的电脑”-“属性”-“高级”-“环境变量”-“PATH”中添加vmware路径,如:C:\Program Files (x86)\VMware\VMware Workstation2. 新建一个“启动vmware.bat”文件,输入... 阅读全文
摘要:
免费10分钟邮箱上线了, 主要是邮件服务器配置的时间太长了..程序倒是简单~ 阅读全文
摘要:
# 略...location / { try_fiels $uri $uri/ /index.php; }# 略... 阅读全文
摘要:
使用PHP访问https网站的时候,间歇性会报error:140943FC错误。google之,通过如下方案可处理:1、服务器ssl版本较高curl_setopt($this->curl, CURLOPT_SSLVERSION, 4);2、进程处理完毕之后关闭会话,不再缓存供重用curl_setop... 阅读全文