title: How can I start a Windows GUI program using PHP?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1403203/php-how-do-i-start-an-external-program-running-having-trouble-with-system-and">php How do I start an external program running - Having trouble with system and exec</a>  </p>
  </blockquote>
  
  
  
  <p>how to open exe with php?<br>
  I had this idea and make hard to success it for several years,but failed at last. any one tell me a success method to do the job ? <br></p>
  
  <pre><code>&lt;?php 
      if(isset($_POST['file_path'])){
          /* ------- 
              using "notepad++.exe" to open "test.php" file.
              or run a bat file which calling "notepad++.exe" to open "test.php" file.
              how to seting php.ini or firefox or any setting to do this job. 
              it is only for conveniently developing web page in my PC ,not for web servers
          ------- */
      }
  ?&gt;
  
  &lt;form action="test.php" method="post"&gt;
      &lt;input type="text" name="file_path" value="test.php"/&gt;
      &lt;button type="submit"&gt;open with notepad++&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This would create something like:</p>
  
  <p><img src="https://i.stack.imgur.com/vimZJ.png" alt="rendered HTML screenshot"></p>