Popular Articles
Recent Stories
A LAMP (Linux, Apache, MySQL, PHP) stack is a common, free and open-source web stack used for hosting web content in a Linux environment. Many consider it the platform of choice on which to develop and deploy high-performance web apps.
This guide shows how to install and test a LAMP stack on Ubuntu 16.04 (LTS).
移动设备升级到iOS10了,发现了自带的Safari浏览器不再识别meta viewport
了。以前我们都是用这个标签来让浏览器禁用缩放的。万恶的Apple~~
网上看到了一段解决方案,测试了一下确实不错,就拿来了。 在iOS10之前都是通过
cd /var/lib/php5 find . -name "sess_*" -print | xargs rm -v
针对Ubuntu,在php.ini中设置session.gc_probability的值为1, 因为Ubuntu默认该值为0
下载Phantomjs:http://phantomjs.org/download.html
解压到:/Users/UFO/
打开terminal,输入命令:export PATH="$PATH:/Users/UFO/phantomjs-2.1.1-macosx/bin/"
测试:phantomjs -v
看到具体的版本号,则表示安装成功
1.给子域名加www标记 RewriteCond %{HTTP_HOST} ^([a-z.]+)?example\.com$ [NC] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .? http://www.xample.com%{REQUEST_URI} [R=301,L] 这个规则抓取二级域名的%1变量,如果不是以www开始,那么就加www,以前的域名以及{REQUEST_URI}会跟在其后。