
php-error
做一个有魅力的程序员
做一个有魅力的程序员
展开
-
解决php中Cannot send session cache limiter 的问题的方法
今天页面写js的时候,气死我了,因为我的页面写了seesion_start(),因为不知道么,所以我的js在session_start()之前报错,郁闷坏了,嘿嘿,殊不知, 方法一:session_start前面不能有html的代码,小知识点在写php的时候 很难注意到哦 错误信息:Warning: session_start() [function.session-start]: Canno原创 2013-10-28 11:02:03 · 11586 阅读 · 0 评论 -
PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone 在用PHP5.3以上的PHP版本时,只要是涉及时间的会报一个 "PHP Warning: date() [function.date]: It is not safe to rely on the system's原创 2013-10-30 12:19:58 · 854 阅读 · 0 评论 -
Fatal error: Maximum execution time of 30 seconds exceeded in
Fatal error: Maximum execution time of 30 seconds exceeded inj报错解决方法 第一种解决办法 找到php的配置文件php.ini 修改max_execution_time = 30 为 max_execution_time = 300(这个值根据情况更改 大于30即可) 重启服务器apache 第二种解决办原创 2014-12-28 14:35:43 · 4101 阅读 · 0 评论 -
Fatal error: Unable to read 1403 bytes in 报错
Fatal error: Unable to read 1403 bytes in /home/空间帐号/public_html 报错,用FlashFXP软件上传到域名空间报错,看到这个信息我也很是无奈,为什么会报错呢 核实了一下是因为在上传的时候没有更改传输模式(本身是不用更改的,但是如果你是phpcms这样的快速建站的方式,就把传输模式更改为二进制) 更改方式: 打开Flas原创 2014-12-30 11:32:40 · 3187 阅读 · 0 评论 -
关于php运算符优先级的几道题
今天看到几个题目比较有意思 分享一下。真的没有看出来自己哪里错了 但是一个没答对 今天正好群里有人在问一道php运算符优先级的问题,正好以前也遇到过类似的问题,这里整理一下吧,方便大家理解 以防掉坑:) 先来道简单的: $a = 3; if ($a = 5) { $a++; } var_dump($a);// (int)6 这里掉坑的同学会认为是3. 注原创 2016-05-19 15:57:14 · 4413 阅读 · 1 评论 -
新浪OAuth网站登陆连接,请求access_token时遇到21323 miss client id or secret 的解决方案
报错信息 error":"invalid_request","error_code":21323,"request":"/oauth2/access_token","error_uri":"/oauth2/access_token","error_description":"miss client id or secret“ 解决方案: 参照文档:http://open.weibo.com/原创 2016-06-28 18:41:22 · 5557 阅读 · 4 评论