title: How to get client computer name using php from remote server
body: <p>I have already used following php script in remote server application but got null value ::</p>
  
  <pre><code>exec('wmic COMPUTERSYSTEM Get UserName', $user);
  $pc_user = (explode('\\',$user[1]));
  $download_location = "c:/users/$pc_user[1]/downloads/";
  </code></pre>
  
  <p>Result :: <code>Array()</code></p>
  
  <p>But in local pc I got the pc user name properly.</p>