摘要: 举个例子,我要实现redirect功能,结果发现:$this->forward('index/index'); //继续执行本controller下的indexAction$this->dispatcher->forward(array('controller'=>'index','action'=>'index')); //继续执行其他controller下的action真正的redirect要这样写:$response = new Phalcon\Http\Response();$ 阅读全文
posted @ 2013-01-19 16:39 up1m 阅读(398) 评论(0) 推荐(0)
摘要: 相关下载: 1 WinPcap installer: http://www.winpcap.org/archive/2 WinPcap WpdPack: http://www.winpcap.org/archive/3 Mingw: http://www.mingw.org/4 pycap: http://code.google.com/p/pypcap/5 sendpkt: http://code.google.com/p/sendpkt/6... 阅读全文
posted @ 2012-06-28 02:31 up1m 阅读(4333) 评论(0) 推荐(0)
摘要: Python的解决方法是读取文件头,根据二进制数据再从字典里找,Google了一个小时决定放弃.采用迂回的解决办法.Python-->Post(json{path,filename})-->PHPPython<--json(data[size,mime,width,height])<--PHP1 import json,requests2 payload = {'x':Filepath+Filename}3 fromPHP = requests.post('http://localhost/php/getimagesize.php',da 阅读全文
posted @ 2012-06-24 17:50 up1m 阅读(377) 评论(2) 推荐(0)