title: PHP get process creation time?
body: <p>I have a (sample) php code as follows :</p>
  
  <pre><code>$name_Proc = "chrome.exe";
  $wmi = new COM('winmgmts://'); 
  $processes = $wmi-&gt;ExecQuery("SELECT * FROM Win32_Process WHERE Name ='".$name_Proc."'"); 
  </code></pre>
  
  <p>I used it to count the process with following code ,</p>
  
  <pre><code> $array = array();
  foreach($processes as $process){ 
           array_push($array,$process-&gt;ProcessId);
  }
  $count_Process = count($array);
  return $count_Process;
  </code></pre>
  
  <p>Now, the real thing, i now need the process creation time, it is possible using VBScript with following code :</p>
  
  <pre><code>    strComputer = "."
  Set objWMIService = GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\cimv2")
  
  Set colProcessList = objWMIService.ExecQuery _
      ("Select * from Win32_Process Where Name = 'notepad.exe'")
  
  For Each objProcess in colProcessList
      Wscript.Echo objProcess.CreationDate
  Next
  </code></pre>
  
  <p>Now, if i was wondering how would i implement this in my PHP script!</p>
  
  <p>Any clues?</p>