Altin
Posts: 21
Joined: Fri Aug 24, 2012 10:52 pm

Programming Language to Learn for Project

Fri Sep 27, 2013 7:08 pm

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

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Programming Language to Learn for Project

Sat Sep 28, 2013 2:09 am

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.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

User avatar
DavidS
Posts: 4334
Joined: Thu Dec 15, 2011 6:39 am
Location: USA
Contact: Website

Re: Programming Language to Learn for Project

Sat Sep 28, 2013 2:23 am

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.
RPi = The best ARM based RISC OS computer around
More than 95% of posts made from RISC OS on RPi 1B/1B+ computers. Most of the rest from RISC OS on RPi 2B/3B/3B+ computers

User avatar
duberry
Posts: 379
Joined: Mon Jan 28, 2013 10:44 pm
Location: standing on a planet that's evolving. And revolving at nine hundred miles an hour

Re: Programming Language to Learn for Project

Sun Sep 29, 2013 10:38 am

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
lend me your arms, fast as thunderbolts, for a pillow on my journey.
If the environment was a bank, would it be too big to fail
so long; and thanks for all the pi

Return to “General programming discussion”