Category: Debug

Warning: Call-time pass-by-reference has been deprecated 0

Warning: Call-time pass-by-reference has been deprecated

在跑php脚本的时候遇到如下警告: Warning: Call-time pass-by-reference has been deprecated 原因

PHP $_GET $_REQUEST 为空 1

PHP $_GET $_REQUEST 为空

刚才遇到一个很奇怪的问题——$_REQUEST无法获取GET参数,一开始以为是PHP配置的问题,后来打印$_GET也是空,所以猜想不是PHP的问题,也许是Nginx的问题。

Thinkphp Uncaught SyntaxError: Unexpected token , 0

Thinkphp Uncaught SyntaxError: Unexpected token ,

以下是我在使用ThinkPHP开发时遇到的问题,写成博客分享一下,希望能帮到大家。 使用Thinkphp(以下简称TP)做web框架时,有时在前端遇到如下错误 Uncaught SyntaxError: Unexpected token ,

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib 1

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

在mac10.8.5上用brew安装nginx,然后将mac升级到了10.9.4,sudo nginx 就会报出如下错误

nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid” 0

nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”

在Mac上用brew安装Nginx,然后修改Nginx配置文件,再重启时报出如下错误: nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid” 解决办法: $ sudo nginx -c /usr/local/etc/nginx/nginx.conf $ sudo nginx -s reload