This project consists of two parts. Part one is an HTML file that displays an index of links. Each link when clicked retrieves the contents of a small text file located in a directory on the server, and displays its contents as a web page.
The second part generates the above (static) HTML index file locally, given a local folder containing the text files. The index file will then be uploaded to the server manually.
a) [url removed, login to view] presents a list of documents in this format:
Date Uploaded Title Date
2015-09-20 Foobar 2010-10-01
2015-09-15 This is it 2011-07-28
2015-08-17 Waldo 2009-12-25
2015-08-10 A Dream 2012-02-29
Title, the title of the document, Date, the date of the document, and Date Uploaded, the date the document was uploaded, are extracted from the associated text file.
b) Clicking on any column header sorts the list by that field, ascending/descending alternating.
c) All documents are stored in server directory "Letters". Each document is a simple text file, for example, Fooletter.txt. The data shown in the above list is saved as the first line of each document file.
d) Clicking on any row retrieves the associated document text file, and displays its text (and nothing else) in a web page. Back should return to index.html.
Note: Directory Letters should not be directly accessible from outside the server. Therefore (I think) a server script must access the text file in Letters and generate the web page that displays it.
a) Generate locally on my computer the file [url removed, login to view] described above.
b) The website will be mirrored locally in a directory, public_html. Directory Letters, containing all text files, will be inside.
c) The first line of each text file contains the title and dates needed to create each line of [url removed, login to view], in this format:
for example, the first line of [url removed, login to view] is
Note: The filename of each document is different from its Title. The Date Uploaded is not the date the file itself was uploaded, but rather the date specified in the file's first line.
d) To generate [url removed, login to view], one simply clicks a button to generate [url removed, login to view] using the contents of local directory Letters.
Part 3, my workflow:
a) Place a new text file into local directory public_html/Letters/.
b) Press a button to generate public_html/index.html.
c) Sync local public_html/ with server public_html/.
A completed solution consists of the script in Part 2 that generates [url removed, login to view], and the server script from Part 1 that assists index.html. The server script must run on Godaddy's cPanel shared server. This host can handle PHP. The generating script must run on Mac OS 10.6.
Note: I understand that a CMS is designed to accomplish exactly these tasks. However, I have two goals. 1) I want the site to be extremely simple, even primitive; 2) I do not want to learn yet another recently fashionable language, study an incoherent manual, or struggle with the undocumented complexities of open source software. I want it to work simply and simply work, such that I can understand and adjust its behavior as needed.
I will supply a test directory with text document files.
Thanks very much for your time, skills, and attention.
30 freelance ont fait une offre moyenne de 206 $ pour ce travail
Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks