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

执行PHP CGI脚本作为后台进程?

Can I run a PHP CGI script as a background process using exec() ?

You could try it to start it as an linux background process using exec().

You could try this:

exec('/usr/bin/php /path/to/your/script.php &');

The '&' tell's linux to start this command in the background.

Note: You lose control over your executed script at that point and it may not work with all hosts (especially shared host envoirements).

近期文章

  • 我应该在使用AJAX发送时散列密码吗?
  • Image Carousel data-slide-to =“?”使用WordPress PHP
  • 在cake php中的“webroot / img”文件夹中上传图片
  • 服务器响应使用php read_file MP3减速
  • 将附件文件上传到另一台服务器[Mybb]
  • 显示当前的不同URL的内容
  • 使用PHP从sql查询中获取特定的JSON数据
  • 如何隐藏html格式的密码字符?
  • 计划的cron作业以检查待处理的活动
  • 如何使用AJAX调用Wordpress函数?
  • 如何为urps编写.htaccess for twitter API
  • Woocommerce - 将新订单详细信息复制到新表
  • 我的登录代码不起作用。 我做错了什么[关闭]
  • 如何从WooCommerce获取所有结帐字段?
  • 如何加入两个php变量来创建一个值
  • 在回显变量时防止XSS攻击
  • 使用SNS将通知推送到多个设备
  • Joomla 2.5从view.html.php更改html标题
  • PHPUnit使用Mockery Framework进行数据库测试
  • 由phpmailer中的API生成的png附件

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华