title: PHP Add string to text file
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1451590/writing-to-a-text-file-in-php">writing to a text file in php</a>  </p>
  </blockquote>
  
  
  
  <p>Say I wanted to add the string $ip to the text file ip.txt in the same directory. I am currently using <code>file_get_contents</code> to read from the text file.</p>