摘要: {literal}{/literal}//------保留变量-------{$smarty} reserved variableThe reserved {$smarty} variable can be used to access several special template vari... 阅读全文
posted @ 2015-05-21 10:31 1317660800 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 算表达式的使用-bash-4.1$ count=1-bash-4.1$ num=2-bash-4.1$ echo `expr $count + $num`3-bash-4.1$ echo $[${count} + ${num}]3-bash-4.1$ echo $((${count} + ${num... 阅读全文
posted @ 2015-05-21 10:30 1317660800 阅读(113) 评论(0) 推荐(0) 编辑
摘要: php中格式化输出日期和时间可用:date('Y-m-d H:i:s',时间戳);的形式输出,对应的是“年-月-日 时:分:秒”。而在smarty模板中,如$time是php文件中assign过来的时间戳,在模板文件中写法为:,同样对应的输出格式为:“年-月-日 时:分:秒”。'; echo '昨天... 阅读全文
posted @ 2015-05-21 10:30 1317660800 阅读(852) 评论(0) 推荐(0) 编辑
摘要: Zend Studio 双击变量后会高亮所有用到的该变量的背景色,如何修改高亮变量的背景色:打开 Window->Preferences->General->Editors->Text Editors->Annotations->PHP elements 'read' occurrences(PHP... 阅读全文
posted @ 2015-05-21 10:14 1317660800 阅读(550) 评论(0) 推荐(0) 编辑
摘要: {$smarty.server.PHP_SELF}{$smarty.server.SCRIPT_NAME}{$smarty}保留变量可以被用于访问一些特殊的模板变量,以下是全部页面请求变量。以下是访问页面请求变量诸如get,post,cookies,server,enviroment和session... 阅读全文
posted @ 2015-05-21 10:06 1317660800 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 《高性能mysql》1、MySQL的联接执行策略--“嵌套循环联接”,下面是一个简单的例子:mysql>SELECTtbl1.col1,tbl2.col2->FROMtbl1INNERJOIN(LEFTOUTERJOIN)tbl2USING(col3)->WHEREtbl1.col1IN(5,6)假... 阅读全文
posted @ 2015-05-21 10:03 1317660800 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.sina.com.cn/s/blog_63ac8a6c0100w63g.html作为linux服务器管理员,经常要使用ssh登陆到远程linux机器上做一些耗时的操作。也许你遇到过使用telnet或SSH远程登录linux,运行一些程序。如果这些程序需要运行很长时间(几... 阅读全文
posted @ 2015-05-21 09:58 1317660800 阅读(126) 评论(0) 推荐(0) 编辑
摘要: http://www.php.net/manual/zh/function.curl-setopt.php转自http://www.21andy.com/blog/20080507/1095.html转自http://blog.csdn.net/superbirds/article/details/... 阅读全文
posted @ 2015-05-21 09:49 1317660800 阅读(167) 评论(0) 推荐(0) 编辑