12 2017 档案

[PHP] PDO占位符预处理在 IN 和 LIKE 中用法
摘要:两点注意项: 1. 占位符 (?) 必须被用在整个值的位置,不需要引号等其它字符。 2. 参数按数组元素顺序依次传递给占位符。 <?php /** * PDO基于占位符的查询预处理 * * @license Apache * @author farwish <farwish(a)foxmail.co 阅读全文

posted @ 2017-12-18 21:27 ercom 阅读(1343) 评论(0) 推荐(0)

[SF] Symfony 在 console 中结合 Workerman
摘要:在web框架的console中,命令不再是直接指定入口文件,如以往 php test.php start,而是类似 php app/console do 的形式。 workerman 对命令的解析是 parseCommand 方法,里面主要是处理 $argv 全局变量。 那么我们只需要在自己的逻辑中 阅读全文

posted @ 2017-12-05 18:11 ercom 阅读(987) 评论(0) 推荐(0)