title: display ghostscript version number through PHP in ubuntu
body: <p>I have written the following code for showing the version number of ghostscript:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?
  
  $ver = shell_exec("/usr/bin/gs --version");
  //$ver = exec(GS_BIN . " --version");
  print "$ver";
  print "A";
  
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I can get the <code>A</code> printed, but not the version number why?</p>
  
  <p>Thanks.</p>