Page 1 of 1

Programming Language to Learn for Project

Posted: Fri Sep 27, 2013 7:08 pm
by Altin
I have a particular project in mind & was wondering what would be the best programming language to learn for it. I want to be able to Read & Edit the content of a text file in the web browser, but have it laid out in an attractive way. For instance, to be able to view & edit the /etc/network/interfaces file, but have each line in the file show up in a HTML text form field, for instance:

Code: Select all

<form>
Interface: <input type="text" name="First line in /etc/network/interfaces file"><br>
Address:  <input type="text" name="Second line in /etc/network/interfaces file"><br>
</form>
Also would it be possible to have such a web page show up when I go to a particular unused port (for instance port 8000) of my Pi, e.g. 192.168.1.200:8000

Re: Programming Language to Learn for Project

Posted: Sat Sep 28, 2013 2:09 am
by elatllat
php+javascript,
you can use any unused port

Code: Select all

netstat -pltu --numeric-ports | perl -pe 's/[^:]*:([0-9]+)[ \t].*/$1/g' | grep -v "[a-z]" | sort -nu
22
80
123
137
138
139
443
445
6969
46883
but I would use 80 and just make it a password protected sub directory.

Re: Programming Language to Learn for Project

Posted: Sat Sep 28, 2013 2:23 am
by DavidS
For the server side anything you want, for the client side (the in web browser part) the only reliable options are to use HTML with the Post tag, or Java Script.

Re: Programming Language to Learn for Project

Posted: Sun Sep 29, 2013 10:38 am
by duberry
Altin wrote: Also would it be possible to have such a web page show up when I go to a particular unused port (for instance port 8000) of my Pi, e.g. 192.168.1.200:8000
yes , some overview of that can be found in this post
http://www.raspberrypi.org/phpBB3/viewt ... -Interface to trigger shell-scripts