Windows Phone 8 的模拟器是运行在 Hyper-V 平台上的,但是开启 Hyper-V 以后 V […]
分类存档:笔记
Windows 下在 PhpStorm 中集成 PHP-CS-Fixer
为了让 PHP 代码更加规范,FIG 组织制定了一系列的规范,现在主要有5个规范,分别是: PSR-0 自动加 […]
升级 yii2-bootstrap 正式版本的 bootstrap 到 3.3 版本
yii2-bootstrap 的 composer.json 定义了依赖 bootstrap 3.2.* | […]
Removing trailing slashes on IIS
Use URL Rewrite 2:
1 2 3 4 5 6 7 8 |
<rule name="Remove trailing slash" stopProcessing="true"> <match url="(.*)/$" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="{R:1}" /> </rule> |
PHP 判断用户是否中国的 IP
因为一些特殊的业务需要判断用户是否在国内访问。因为只需要判断是否国内访问,所以用 IP 库的话会太过于浪费,杀 […]