摘要: date(): 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.出现这个问题,主要是因为没有在 php.ini 里面对时区进行设置造成的,解决方法是,修改 php.ini,加入:date.timezone="Asia/Chongqing"重启 apache,搞掂!阅读全文
posted @ 2012-11-12 13:48 DavidHHuan 阅读(204) 评论(0) 编辑
摘要: here is the code for example:#!/bin/bashecho-e"your_password\nyour_password"|sudo/home/davidhhuan/the_shell_you_want_to_run.sh阅读全文
posted @ 2012-11-12 11:34 DavidHHuan 阅读(166) 评论(0) 编辑