性感的农民
- 性感的农民 2016-05-08 已签到连续签到5天,获得了20个金钱
how about you try this?
<?php ob_clean(); while(true){ echo str_repeat(' ',1024*1024*4); echo 'hello, world ...<br />'; ob_flush(); flush(); usleep(1000); }
it works for me:
class HskcmdController extends \yii\console\Controller { public function actionWords() { $this->stdout("Pre-process for hsk1to6_words:\n", Console::BOLD, Console::FG_BLUE);
个人感觉
yii\rest\ActiveController
的那一堆预先写好的action有点鸡肋。我都是直接从\yii\rest\Controller
派生控制器,自己写接口更方便。不一定是
配置
的问题,swiftmailer
很久没有更新了。确认一下是不是下面的原因:由于php5.6、php7对完全有所加强,所以导致swiftmailer库出‘Bug’:
请打开文件vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php,找到_establishSocketConnection()
,对$options做些修改,修改后的代码片段为:258 } 259 $options = array(); 260 $options['ssl']['allow_self_signed'] = false; 261 $options['ssl']['verify_peer'] = false; 262 $options['ssl']['verify_peer_name'] = false; 263 if (!empty($this->_params['sourceIp'])) { 264 $options['socket']['bindto'] = $this->_params['sourceIp'].':0'; 265 }
其中
260, 261, 262
为添加的语句。- 性感的农民 2016-05-05 已签到连续签到2天,获得了10个金钱
- 性感的农民 赞了说说头像是狗头的都来点个赞!
- 性感的农民 2016-03-23 已签到连续签到1天,获得了5个金钱
- 性感的农民 2016-03-16 已签到连续签到1天,获得了5个金钱
- 性感的农民 2016-03-02 已签到连续签到7天,获得了20个金钱