title: hide command usage argument on browser of shell_exec PHP in windows
body: <p>I make the traceroute web based. I use shell_exec to execute the process and show the output via browser. I have problem with the first I call the page on browser. There is usage of tracert command show. I try to hide it by place the script inside the function. yes, it works but another element like map when I start load the page doesn't show. Here is my php code :</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;body&gt;
  &lt;?
  $host  = @$_POST['host']; 
  $trace = @$_POST['trace'];
  $self  = $_SERVER['PHP_SELF'];
  ?&gt;
  ...
          &lt;form name="tools" action="&lt;?php $self ?&gt;" method="post"&gt;
      &lt;p&gt;&lt;font size="2"&gt;Your IP is &lt;?php $ip ?&gt; &lt;/font&gt;&lt;/p&gt;
      &lt;input type="text" name="host" value=""&gt;&lt;/input&gt;
      &lt;input type="submit" name="trace" value="Traceroute!"&gt;&lt;/input&gt;
      &lt;/form&gt;
      &lt;?php
      if ($_POST['submit']) 
  {
      if (($host == 'Enter Host or IP') || ($host == "")) {
          echo '&lt;br&gt;&lt;br&gt;You must enter a valid Host or IP address.';
          exit; } 
  
      if(eregi("^[a-z]",  $host))
      {
          $host_name = $host;
          $host_ip = gethostbyname($host);
      }
      else
      {
          $host_name = gethostbyaddr($host);
          $host_ip = $host;
      } 
  }
      $host= preg_replace ("[-a-z0-9!#$%&amp;\'*+/=?^_`{|}~]","",$host);
      $command = "tracert $host";
      $fp = shell_exec("$command 2&gt;&amp;1");
      $output .= (htmlentities(trim($fp)));
      echo "&lt;pre&gt;$output&lt;/pre&gt;";
      echo '&lt;br/&gt;'; 
  ?&gt;
  ...
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And the html code (browser output) :</p>
  
  <pre><code>'''
  &lt;form name="tools" action="" method="post"&gt;
  
      &lt;p&gt;&lt;font size="2"&gt;Your IP is  &lt;/font&gt;&lt;/p&gt;
  
      &lt;input type="text" name="host" value=""&gt;&lt;/input&gt;
  
      &lt;input type="submit" name="trace" value="Traceroute!"&gt;&lt;/input&gt;
  
      &lt;/form&gt;
  
      &lt;pre&gt;Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] 
                 [-R] [-S srcaddr] [-4] [-6] target_name
  
  Options:
      -d                 Do not resolve addresses to hostnames.
      -h maximum_hops    Maximum number of hops to search for target.
      -j host-list       Loose source route along host-list (IPv4-only).
      -w timeout         Wait timeout milliseconds for each reply.
      -R                 Trace round-trip path (IPv6-only).
      -S srcaddr         Source address to use (IPv6-only).
      -4                 Force using IPv4.
      -6                 Force using IPv6.&lt;/pre&gt;&lt;br/&gt; &lt;script type="text/javascript"&gt;
  
      var pinImage = new google.maps.MarkerImage ("http://chart.apis.google.com/chart?chst=d_map_xpin_letter_withshadow&amp;chld=pin_star|%E2%80%A2|CC3300|000000|FF9900",
  
          new google.maps.Size (70, 83),
  
          new google.maps.Point (0,0),
  
          new google.maps.Point (10,34));
  
      var pinShadow = new google.maps.MarkerImage ("http://chart.apis.google.com/chart?chst=d_map_pin_shadow",
  
          new google.maps.Size (89, 85),
  
          new google.maps.Point (0, 0),
  
          new google.maps.Point (12, 35));
  
  
  
      function initialize() {
  
      var myLatlng = new google.maps.LatLng(38.822591, 150.46875);
  
      var myOptions = {
  
      zoom: 2,
  
      center: myLatlng,
  
      mapTypeId: google.maps.MapTypeId.ROADMAP,
  
      }
  
      var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
          }
  ...
  </code></pre>
  
  <p>All I need is to hide the help usage of traceroute like in my html code. So when I first load the page, it just show the text field, button and map without that usage of tracert.
  I really need your help as soon as possible. Big thanks. </p>