11 2012 档案
PHP跨时区应用解决方案
摘要:1.将程序内部时区设置为UTC时间.(UTC 也可以叫 GMT)PHP设置:date_default_timezone_set("UTC");Yii设置:config/main.php 中添加 :'timeZone'=>'UTC',如此设置后,PHP生成的时间基本都是UTC时间了.例如://输出当前UTC时间date("Y-m-d H:i:s");2.数据库中存储UTC时间.可以用PHP控制,也可以通过设置数据库时区来实现.3.服务端发送到前端的时间均为UTC时间格式, 由JS将其转换为本地时间后进行显示.JS内部数 阅读全文
posted @ 2012-11-26 17:42 Cloud Lee 阅读(602) 评论(0) 推荐(1)
安装 ZendServer-CE 可能遇到的问题
摘要:安装后,打开http://localhost:10081/ZendServer出现如下页面.Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might ha 阅读全文
posted @ 2012-11-19 15:46 Cloud Lee 阅读(228) 评论(0) 推荐(1)
phpMyAdmin 安装及配置
摘要:1.下载官网地址:http://www.phpmyadmin.net2.安装解压至服务器根目录(如www,webroot),文件夹改名为phpMyAdmin,然后可以通过http://localhost/phpMyAdmin 之类的路径访问.3.配置1)将phpMyAdmin/config.sample.inc.php 改名为config.inc.php.2)参考文件phpMyAdmin/libraries/config.default.php ,更改1)中改名后的config.inc.php 文件.配置举例:$cfg['Servers'][$i]['host' 阅读全文
posted @ 2012-11-17 12:33 Cloud Lee 阅读(261) 评论(0) 推荐(1)