php
王核桃
这个作者很懒,什么都没留下…
展开
-
smarty中的时间问题
Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of原创 2016-06-02 11:58:09 · 433 阅读 · 0 评论 -
优先级问题
算术操作符 → 比较操作符 → 逻辑操作符 → "="赋值符号算术运算符 含义(示例)+(加号) 加法运算 (3+3)–(减号) 减法运算 (3–1) 负 (–1)*(星号) 乘法运算 (3*3)/(正斜线) 除法运算 (3/3)%(百分号) 求余运算10%3=1 (10/3=3·······1)^(乘方) 乘幂运算 (3^2)! (阶乘) 连续乘法原创 2016-06-12 10:26:06 · 273 阅读 · 0 评论 -
Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
在thinkphp中连接mysql时,出现了Undefined class constant 'MYSQL_ATTR_INIT_COMMAND',解决方法如下:http://wenku.baidu.com/link?url=nFBOX9RW40TkVzp510cy19D9JBsHD4ERXiLGUm80zm4Q2mQ6laWCTZ_3q9zzq4S3mo4HFyc7Z2Hus0D8eIrm原创 2016-07-08 18:12:50 · 377 阅读 · 0 评论