title: php file_put_contents ... can't i append at beginning?
body: <pre><code>&lt;?php
  $file = 'people.txt';
  // The new person to add to the file
  $person = "John Smith\n";
  // Write the contents to the file, 
  // using the FILE_APPEND flag to append the content to the end of the file
  // and the LOCK_EX flag to prevent anyone else writing to the file at the same time
   file_put_contents($file, $person, FILE_APPEND | LOCK_EX);
  ?&gt;
  </code></pre>
  
  <p>This will append the content at the end of the file. i want to write newest at the beginning of the file.</p>