LAMP环境下的隐藏文件15-06-24
Redis的安装和配置15-06-23
邮箱类的调用15-06-09
Warning: stream_socket_client() has been disabled for security reasons in /....... 在调用mail类时报错,一般是服务器禁用了stream_socket_client()函数,可以试试先和空间上商讨,一般会失败;换空间或者升级空间,当然会需要一定的时间和代价,此时可以考虑使用fsockopen替换; 需要注意的就是两个用法不同,以下是参考代码对比:fsockopen($host, 80, $errno, $errstr, 30);
fsockopen($host, $port, $errno, $errstr, $connection_timeout);
stream_
....
....
Nginx配置详解15-06-04
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
....
....