博客园  :: 首页  :: 新随笔  :: 订阅 订阅  :: 管理

2013年2月19日

摘要: 关于smarty请参考:http://www.php100.com/manual/smarty/index.htmlIndex.phprequire('../libs/Smarty.class.php');$smarty = new Smarty;// 添加自定义调节器$smarty->registerPlugin("modifier", "e", "htmlspecialchars");$smarty->registerPlugin("modifier", "trim&quo 阅读全文

posted @ 2013-02-19 19:01 PHP-张工 阅读(827) 评论(0) 推荐(0) 编辑

摘要: 在VS的扩展管理器里,添加【PHP Tools for Visual Studio】扩展就可以在VS里编辑PHP了。这个扩展能使VS支持PHP语法高亮,最重要的是支持智能提示。只可以我还没有找到破解版。但可试用21天。效果如下:再推荐几个好用的VS扩展【Indent Guides】效果如下:【Productivity Pover Tools】这个就不多说了。很好用。有园友已经介绍过了。http://www.cnblogs.com/hamson/archive/2013/02/16/productivity-power-tools-2012.htmlCtrl+Alt+]格式化代码很爽哦。 阅读全文

posted @ 2013-02-19 18:48 PHP-张工 阅读(15656) 评论(4) 推荐(0) 编辑

摘要: PHP 对客户端输入进行输入转义// 对 用户提交的数据 ' " \ 进行转义if ( get_magic_quotes_gpc() ){ function del_magic_quotes($value) { $value = is_array($value) ? array_map('del_magic_quotes', $value) : stripslashes($value); return $value; } $_POST = del_magic_quotes( $_POST ); $_GET = del_m... 阅读全文

posted @ 2013-02-19 18:31 PHP-张工 阅读(441) 评论(0) 推荐(0) 编辑