Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

笔误??? #9

Closed
hezhizheng opened this issue Nov 17, 2018 · 1 comment
Closed

笔误??? #9

hezhizheng opened this issue Nov 17, 2018 · 1 comment

Comments

@hezhizheng
Copy link

crontab

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

LinuxIO模型

// async ?
aysnc_read("http://www.qq.com",function($data){
    echo $data;
})
    echo "end";
@xianyunyh
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants