Invalid argument supplied for foreach() + Logic of Script
<p>I posted a similar question earlier today, however I recently downloaded xampp and can now get syntax errors.  I'm very new to all of this.</p>

<p>Please see this example to see the current state of my .php file: <a href="http://rich2233.comoj.com/file2.php" rel="nofollow">http://rich2233.comoj.com/file2.php</a>  </p>

<p>I can get the .txt file to extract and display the content from the .txt file, but any attempt of modifying the .txt file does not happen.</p>

<p>When I ran this on xampp, I got this error: Invalid argument supplied for foreach() in file2.php on line 30</p>
