问题描述
大家好!
Windows XP,Apache 2.2,PHP 5.2.5作为apache模块(php5apache2_2.dll)
我需要运行后台进程并查看输出但是当前时刻
所有方法都将其作为进程而非应用程序运行(在任务中可见
经理但没有附加窗口)。我尝试了exec,``,popen(),和没有start和psexec的
。
这里可以将它作为单独的进程运行,无需等待(psexec
-d)和可见窗口?在单独的
窗口中运行''cmd''的小例子会很棒。
谢谢!
我认为wintty.exe正是你要找的。
但是我玩的很长时间了。
如果不是我想的话我很抱歉。
-
真诚的你,AnrDaemon< an **** ***@freemail.ru>
转到PHP手册获取exec ...有一条评论说
关于创建一个COM对象。
Hendri Kurniawan
您需要调用Windows命令处理器来执行
异步命令。只有PHP调用才能做到这一点 - 结束
同步调用操作系统。
-
==================
删除x来自我的电子邮件地址
Jerry Stuckle
JDS计算机培训公司
==================
Hi all!
Windows XP, Apache 2.2, PHP 5.2.5 as apache module (php5apache2_2.dll)
I need to run background process and see output but for current moment
all methods runs it as process not as application (visible in task
manager but no window attached). I tried exec, ``, popen(), with and
without start and psexec.
Is here any way to run it as separate process, without waiting (psexec
-d) and with visible window? Small example running ''cmd'' in separate
window will be great.
Thanks!
I think that wintty.exe is what you''re looking for.
But it was long time I have played with it.
I''m sorry if it is not what i think.
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>
Go to PHP manual for exec... There is a comment there saying something
about creating a COM object.
Hendri Kurniawan
You need to invoke the Windows command processor to execute an
asynchronous command. You can''t do it with just PHP calls - which end
up as synchronous calls to the OS.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
这篇关于使用窗口在Windows上从PHP运行后台进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!