在Wamp Server中将php脚本作为后台进程运行 [英] Run a php script as a background process in wamp server

查看:83
本文介绍了在Wamp Server中将php脚本作为后台进程运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个php脚本,需要在WAMP服务器中作为连续的后台进程运行.

I have two php scripts that need to be run as continuous back ground processes in WAMP server.

Wamp服务器安装在Windows 7 PC中.这些脚本已经驻留在www根目录的单独文件夹中.

Wamp server is installed in window 7 PC. These scripts are already reside in separate folder in the www root directory.

Apache版本:2.2.8
PHP版本:5.2.6

Apache Version :2.2.8
PHP Version :5.2.6

由于这不是我不能使用的Unix平台 nohup php script.php > /dev/null &命令来完成这项工作.我正在寻找在wamp服务器Windows平台中可以使用的类似命令或方法.

Since this is not a unix platform I can't use nohup php script.php > /dev/null & command to do this job. I'm looking for similar kind of command or method which works in wamp server windows platform.

任何人都可以解释我执行此任务所需采取的步骤吗?

Can anyone explain the steps I need to be taken to do this task?

推荐答案

  1. 创建一个批处理文件以使用php可执行文件"C:\ wamp \ php \ php.exe C:\ wamp \ www \ index.php"运行您的php脚本
  2. 将此批处理文件添加到Windows控制面板的计划任务"中.

这篇关于在Wamp Server中将php脚本作为后台进程运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆