title: "proc_open() has been disabled for security reasons" - PHP Error
body: <blockquote>
    <p>proc_open() has been disabled for security reasons</p>
  </blockquote>
  
  <p>I'm with free hosting at the moment (Hostinger) - Making a personal site for my use only and a few others.</p>
  
  <p>I know I am supposed to remove the <code>proc_open</code> from the <strong>php.ini</strong> but I can't access it due to my shared hosting plan.</p>
  
  <p>The code surrounding the <code>proc_open</code> in my code is as follows - If you require the full code please let me know. I've tried commenting parts out but it returns errors. </p>
  
  <p>All I want is to remove it and allow for the code to run fine.</p>
  
  <pre><code>&lt;?php
  // Initializing
  if (!isset($ACCOUNTS)) $ACCOUNTS = array();
  if (isset($USER) &amp;&amp; isset($PASSWORD) &amp;&amp; $USER &amp;&amp; $PASSWORD) $ACCOUNTS[$USER] = $PASSWORD;
  if (!isset($HOME_DIRECTORY)) $HOME_DIRECTORY = '';
  $IS_CONFIGURED = count($ACCOUNTS) &gt;= 1 ? true : false;
  
  // Command execution
  function execute_command($command) {
      $descriptors = array(
          0 =&gt; array('pipe', 'r'), // STDIN
          1 =&gt; array('pipe', 'w'), // STDOUT
          2 =&gt; array('pipe', 'w')  // STDERR
      );
  
      $process = proc_open($command . ' 2&gt;&amp;1', $descriptors, $pipes);
      if (!is_resource($process)) die("Can't execute command.");
  
      // Nothing to push to STDIN
      fclose($pipes[0]);
  
      $output = stream_get_contents($pipes[1]);
      fclose($pipes[1]);
  
      $error = stream_get_contents($pipes[2]);
      fclose($pipes[2]);
  
      // All pipes must be closed before "proc_close"
      $code = proc_close($process);
  
      return $output;
  }
  </code></pre>