Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Process Management in windows
- Rick Westmacott
September 30, 2004, 4:27 am
rate this thread
return the windows process id of the batch file. I have played around with
proc_open() but that returns a resource id. Does anyone have a suggestion
on what call I could use to get the windows process id returned within my
program. I am using windows xp pro, and php 5/apache
Re: Process Management in windows
At least in PHP4 there was a php_w32api (or similar), which allows you to
access winapi functions directly. Then look for a suitable function in the
MSDN/any tutorial/elsewhere which you can call through the winapi.
Anyway, php_w32api nearly completely sucked on my system (~1 year ago)...
For some strange reason, the maximum of possible calls to the winapi was
TWO! (Either two functions or one function twice.)
Further at that time the official manual on php_w32api was unusable, too,
but Google found a nice function description list.
You could give it a try, but if didn't improved a lot since then, you
shouldn't expect too much.
Simon Stienen <http://dangerouscat.net <http://slashlife.de
»What you do in this world is a matter of no consequence,
The question is, what can you make people believe that you have done.«
-- Sherlock Holmes in "A Study in Scarlet" by Sir Arthur Conan Doyle