smelikecat

导航

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 29 下一页

2016年1月5日 #

[smarty] smarty 模板文件中进行字符串与变量的拼接

摘要: // smarty 模板引擎$arr_tribeLabelList["`$tribe_id`_"] 阅读全文

posted @ 2016-01-05 18:28 smelikecat 阅读(333) 评论(0) 推荐(0)

[php-cookie] cookie 请求跨域,如何共享

摘要: cookie 请求跨域的问题, 假设我有两个域名,一个 m.example.com,另一个是 www.example.com 。那么我需要如何设置 cookie 才可以在这两个域名都实现共享呢?// m.example.com & www.example.com 的根域名都是 example.com... 阅读全文

posted @ 2016-01-05 16:57 smelikecat 阅读(877) 评论(0) 推荐(0)

[php]PHP_函数收集

摘要: //http://php.net/manual/en/control-structures.break.php //break ends execution of the current for, foreach, while, do-while or switch structure. //bre 阅读全文

posted @ 2016-01-05 16:23 smelikecat 阅读(179) 评论(0) 推荐(0)

2015年12月28日 #

[php-dom] php-dom使用注意事项

摘要: /*注意事项: 1. 在loadHTML之前,应该将内容转义为UTF-8编码的,这样子避免出现entity等等的报错; 2. 已经使用了php函数htmlspecialchars()转换的html实体,再经过DOM解析转换后,会被直接还原为标签,如:<br/> 在dom解析之后,直接... 阅读全文

posted @ 2015-12-28 16:39 smelikecat 阅读(313) 评论(0) 推荐(0)

2015年12月25日 #

[mysql] mysql 查询语句收集

摘要: // 1. 筛选出当天的中奖名单 $where = " date_format(f_ctime,'%Y-%m-%d') = current_date()";// 2. 将同一个分组下面的多条记录中的某个字段合并SELECT f_id, GROUP_CONCAT(f_content SEPARATOR... 阅读全文

posted @ 2015-12-25 19:32 smelikecat 阅读(151) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 29 下一页