title: How to update an ini file with php?
body: <p>I have an existing ini file that I have created and I would like to know if there was a way to update a section of the file or do I have have to rewrite the entire file each time?</p>
  
  <p>Here is an example of my config.ini file:</p>
  
  <pre><code>[config]
      title='test'
      status=0
  [positions]
      top=true
      sidebar=true
      content=true
      footer=false
  </code></pre>
  
  <p>Say I want to change the <code>[positions] top=false</code>. So would I use the parse_ini_file to get all of the infromation then make my changes and use fwrite to rewrite the whole file. Or is there a way just to change that section?</p>