- 博客(13)
- 资源 (4)
- 收藏
- 关注
转载 PHP获取今天、昨天、明天的日期
<?php echo "今天:".date("Y-m-d").""; echo "昨天:".date("Y-m-d",strtotime("-1 day")), ""; echo "明天:".date("Y-m-d",strtotime("+1 day")). ""; echo "一周后:".date("Y-m-d",strtotime("+1 week")
2014-06-05 12:19:58 323
转载 mysql修改数据库密码
格式:mysqladmin -u用户名 -p旧密码 password 新密码1、给root加个密码ab12。首先在DOS下进入目录mysql\bin,然后键入以下命令 mysqladmin -u root -password ab12注:因为开始时root没有密码,所以-p旧密码一项就可以省略了。2、再将root的密码改为djg345。 mysqladm
2014-03-20 11:50:26 491
转载 wordpress通过文章的附加字段查询文章(query_posts)
$args = array( 'posts_per_page' => 10, // 显示多少条 'paged' => $paged, // 当前页面 'orderby' => 'date', // 时间排序 'order' => 'desc', // 降序(递减,由大到小)
2014-02-18 18:47:35 1363
转载 SVN 版本恢复命令行操作
svn恢复版本svn没有恢复旧版本的直接功能,不过可以使用svn merge命令恢复。 比如说当前HEAD为14,而我要恢复成10版本,怎么做?用svn merge: svn update svn merge --revision 14:10 svn commit -m "restore to revision 10" 可能会很奇怪,因为
2014-02-17 21:31:44 1135
转载 php不用编译增加openssl的方法
#下面是php的安装目录 /usr/local/php5/bin/ #切换到php安装目录的 etx/openssl目录 cd /php-5.3.8p/ext/openssl #查看openssl目录下有个config0.m4,把config0.m4改名为config.m4。 cp config0.m4 config.m4 #依次执行:
2014-02-13 17:27:19 574
原创 Postfix服务操作
mac 安装目录/usr/sbin1:启动 postfix start2:停止 postfix stop3:列出目前在 Mail Queue 中的邮件 mailq4:刪除所有在 Queue 中的邮件 postsuper -d ALL5:刪除所有正在 deferred 队列中的邮件 (删除曾经发送失败的邮件 ) postsuper -d ALL deferred
2014-01-17 20:36:40 674
原创 关于Android 4.0以下版本解析带有bom头信息的json数据
关于下面那个错误,浪费我半天时间,所以还是分享一下,省得以后大家也遇到浪费时间!02-02 18:23:51.779: W/System.err(954): org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject调试了半天,以为接口数据返回的js
2013-04-19 19:46:44 987
转载 Mac OS X 安装 nginx + php fcgi + mysql
Mac OS X 安装 nginx + php fcgi + mysqlmac port安装port http://www.macports.org/install.phpnginx在Mac上使用macport安装和配置Nginx非常方便,首先安装nginxsudo port install nginx spawn-fcgi安装完成后启动
2013-01-08 13:02:11 364
原创 linux递归删除某个文件或目录
具体命令如下:1. 递归删除所有的.svn目录:find . -name '.svn' -type d -print -exec rm -rf {} \; 2. 递归删除.svn文件:find . -name '*.svn' -type f -print -exec rm -rf {} \;
2013-01-05 17:36:53 490
转载 MAC中使用svn时报证书验证错误Error validating server certificate for…的解决办法
在MAC中使用SVN时会遇到SVN因为证书的问题而报错,如:subversion erroroptions of ‘https://svn.tsov.net/XXXX/’: Server certificate verification faild: certificate issued for a different hostname, issuer is not trusted(https
2012-08-30 11:00:55 1089
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人