xianyunyh / PHP-Interview

This is the information I prepared for the PHP interview.The notes include PHP, MySql, Linux, etc.

Home Page:https://xianyunyh.gitbooks.io/php-interview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

笔误???

hezhizheng opened this issue · comments

crontab

3,15 * * * * myCommand #每小时第三分钟和第五分钟执行  // 3,5 * * * *   ?

LinuxIO模型

// async ?
aysnc_read("http://www.qq.com",function($data){
    echo $data;
})
    echo "end";
commented

@hezhizheng 第一个crontab 是笔误。第二个只是举个例子。再php中,你可以使用swoole的异步函数,或者使用nodejs测试异步。PHP中大部分的函数都是阻塞同步的。我只是举个例子