Hi there! I know literally NOTHING about PHP - I’m currently learning Python, and whilst I do want to learn PHP and others, I don’t really want to do too many things at once. That said, I’ve got a home automation project on a Raspberry pi, which works great - it takes it’s on and off times from a local text file. At the moment, I modify that text file using SFTP but I want to put a really simple web interface on the pi, just to modify this text file.
I’ve got Apache and PHP working. I know my way around HTML but my Javascript is VERY rusty, I haven’t written any for 15 years. All I want to do is have a webpage which displays a textbox containing the current file contents, and let’s me edit it. Basically I want a web-based notepad, nothing more for now.
I found this: http://www.dynamicdrive.com/forums/showthread.php?4539-how-do-i-modify-existing-txt-files-with-php (which was admittedly probably written before some of you were born!!) - I liked it because it’s so short I can pick through it line by line, but it doesn’t work (possibly because versions have moved on since then, I don’t know). The posts I find on StackExchange and such tend to say “you ned to learn PHP, CSS, JQuery, COBOL, Fortran, Sanscrit and Heiroglyphics to do this” but I want to keep things as simple as possible.
If it’s any help, security is not an issue whatsoever (for now, at least) as my pi is not connected to the Internet.