title: Creating install script form custom web app
body: <p>I'm looking for option to make <strong>install.php</strong> where user puts all needed data e.g. db host, db username, db pwd etc. Script must put it to php class called config.</p>
  
  <pre><code>public function __construct(){
      $this-&gt;site_address = '';
      $this-&gt;db_prefix = '';
      $this-&gt;site_desc = '';
      $this-&gt;site_title = '';
      $this-&gt;hash = '';
      $this-&gt;sidebar = false;
      $this-&gt;db_host = '';
      $this-&gt;db_name = '';
      $this-&gt;db_pass = '';
      $this-&gt;db_user = '';
      $this-&gt;db_port = 3306;
      $this-&gt;folder = NULL;
      $this-&gt;mailserver = '';
      $this-&gt;mailport = '';
      $this-&gt;mailuser = '';
      $this-&gt;mailpassword ='';
  
  }
  </code></pre>
  
  <p>How to put data from form on <strong>install.php</strong> page to this class constructor?
  I was thinking about getting content->find <code>$this-&gt;db_host =</code> and replace <code>''</code> for <code>'.$_POST['db_host'].'</code> from form and then put content to file and save, but I don't know how exactly do that. Please help.</p>