04 2014 档案

摘要:bootstrap中文文档:http://www.bootcss.com/免费的bootstrap模板:http://bootswatch.com/ 阅读全文
posted @ 2014-04-25 10:10 ifeixiang 阅读(245) 评论(0) 推荐(0) 编辑
摘要:php读ini文件有很方便的pares_ini_file,但是写回去却没有,这里写一个:function write_ini_file($assoc_arr, $path, $has_sections = FALSE) { $content = ""; if ($has_sections... 阅读全文
posted @ 2014-04-21 15:00 ifeixiang 阅读(1448) 评论(0) 推荐(0) 编辑
摘要:Mysql默认查询是不分大小写的,可以在SQL语句中加入 binary来区分大小写;BINARY不是函数,是类型转换运算符,它用来强制它后面的字符串为一个二进制字符串,可以理解为在字符串比较的时候区分大小写例如 :select * from `test` where binary `name` = ... 阅读全文
posted @ 2014-04-16 17:36 ifeixiang 阅读(8648) 评论(0) 推荐(0) 编辑
摘要:file_get_contents在连接不上的时候会提示Connection refused,有时候会带来不便;另外,curl的性能比file_get_contents高,所以用curl重写file_get_contentsfunction _file_get_contents($s) { $... 阅读全文
posted @ 2014-04-14 15:59 ifeixiang 阅读(416) 评论(0) 推荐(0) 编辑
摘要:在 conf文件server块里面加上:add_header 'Access-Control-Allow-Origin' "$http_origin";add_header 'Access-Control-Allow-Credentials' 'true';add_header 'Access-Co... 阅读全文
posted @ 2014-04-14 14:31 ifeixiang 阅读(2802) 评论(0) 推荐(0) 编辑
摘要:server { listen *:80; server_name www.mydomain.com *.mydomain.com; root /var/www/www.mydomain.com/web; if ($http_host != "www.mydomain.com") { rewrite ^ http://www.mydomain.com$request_uri permanent; } index index.php index.html; location = /... 阅读全文
posted @ 2014-04-10 10:19 ifeixiang 阅读(776) 评论(0) 推荐(0) 编辑