我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使一个php exec在CLI上以并行进程运行

Im running this php file from a linux host, and I have this line of code:

exec('sleep 60 && wget http://thisismyurlpath?id='.''.$insert_id);

This will trigger on a if statement, and the URL function call takes some time to execute it, and there is the sleep part.

I want to run that exec on a different process (thread) so that I won't be affected on the slow run time of that process and my after if statements in my script to run independent of that slow exec.

近期文章

  • Laravel:Connection.php第319行中的PDOException:SQLSTATE [42S02]
  • 如何在发布请求后保留表单项。使用onchange
  • 如何使用Couchbase,N1QL和PHP进行选择?
  • 从移动应用程序与Wordpress网站API进行交互
  • 使用codeigniter上传视频
  • woocommerce自定义添加到购物车按钮
  • 简单的MySQL查询显示错误
  • 如何使用Union all或任何新解决方案组合3个查询
  • 显示来自concat mysql和php的图像
  • 在Laravel中处理不同类型的用户角色
  • 如何将多个Checkbox填充到数据库?
  • 让PHP在WAMP中使用Apache(升级时)
  • 如何在ORACLE SQL PROCEDURE中操作“if condition”?
  • 来自Google Storage / Google App Engine的LOAD DATA LOCAL INFILE?
  • 一般错误:1215无法添加外键约束laravel 5.3
  • 我如何将所选值列为选定值和其他值作为listin php foreach循环
  • 表3列循环
  • 删除ASCII图稿
  • 注意:当从数组值动态调用方法时,数组到字符串转换
  • fb使用codeigniter登录

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华