The simplest way to allow a web user to update a text file using PHP and Javascript?
<h2><strong>Problem:</strong></h2>

<p>I dont know the simplest way to allow a single web viewer to <em>update data</em> in a text file on a server. (ie. only 1 person will be changing the data.)</p>

<h2><strong>Objective:</strong></h2>

<p>To make a prototype web application just <em>one person needs to input</em> in the start and end dates of new assignments and locations of staff and the whole company can visualize the information on a GANTT chart, probably using <a href="http://plugins.jquery.com/project/ganttView" rel="nofollow">this Jquery libary.</a></p>

<h2><strong>Contraints:</strong></h2>

<ol>
<li><p>My data is about the equivalent size of 1000 of these javascript list of lists like </p>

<p><em>data = [["John Smith" , "assigment" , "1/1/10", "1/1/11", "Peru"],[...],...]</em> </p></li>
<li><p>Employee assignment data must be on an internal server.</p></li>
<li><p>I can't use a database (such as SQlite or MySQL).</p></li>
<li><p>I can only use PHP, Javascript, and Jquery. </p></li>
<li><p>Fact: <a href="http://stackoverflow.com/questions/585234/how-to-read-and-write-into-file-using-javascript">Javascript cant directly change a data file sitting on the server.</a> </p></li>
</ol>

<h2><strong>My Tentative Fuzzy Solution:</strong></h2>

<p><strong>On client-side:</strong> use jqeury <code>getJSON()</code> to pass the data back and forth between <code>dataReadWriter.php</code>.</p>

<p><strong>On server-side:</strong> <code>dataReadWriter.php</code> modifies a PHP <code>array</code> as well as writes modified data and reads <code>JSONdata.txt</code> stored in a text file on our internal server.    </p>
