Problem:
I dont know the simplest way to allow a single web viewer to update data in a text file on a server. (ie. only 1 person will be changing the data.)
Objective:
To make a prototype web application just one person needs to input 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 this Jquery libary.
Contraints:
My data is about the equivalent size of 1000 of these javascript list of lists like
data = [["John Smith" , "assigment" , "1/1/10", "1/1/11", "Peru"],[...],...]
Employee assignment data must be on an internal server.
I can't use a database (such as SQlite or MySQL).
I can only use PHP, Javascript, and Jquery.
Fact: Javascript cant directly change a data file sitting on the server.
My Tentative Fuzzy Solution:
On client-side: use jqeury getJSON()
to pass the data back and forth between dataReadWriter.php
.
On server-side: dataReadWriter.php
modifies a PHP array
as well as writes modified data and reads JSONdata.txt
stored in a text file on our internal server.