![]() | ![]() | ![]() |
| |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
![]() |
| | Tools |
| | #1 |
|
Hello Couldnt quite decide wether to put this in robotics/uC's so i put it here :wink: well anyway. Does anybody know what is the best/easiest language which can be used to interface with the serial/parallel port? (through the internet..ie..over a webpage) would it have to be linked to a program made in C++/VB ? basically i would like to control a pic over the internet through a webpage Any ideas? Thanks Kane | |
| |
| | #2 |
|
I posted the method that I used in this thread | |
| |
| | #3 |
|
thanks for the reply i have never used perl...but have apache running. What should i search for (tutorial wise) to find about sending commands to programs? how did you learn perl? Thanks Kane | |
| |
| | #4 |
|
Perl is a rich language with lots of features, but you can get by fairly easily without all of the extras. to get apache going with perl, search around for mod_perl tutorial or something along those lines. That will get you up and running with a perl cgi interface. The perl routines will extract the arguments from the web page for you, you just have to act on them. Using the backtics, you can execute command line programs directly from perl: my $name="crust"; `echo $name`; Perl is very good at making "intelligent shell scripts" though it can be used for whole programs, cgi, etc. As for how I learned it? Well, pretty much just by using it -- they didnt teach it in either undergraduate or graduate school. If I got stuck, I would just search around the newsgroup archive until I found a viable solution. It saved a ton of time when I did my phd research -- I had all of my experiments, data collection, and the extraction automated. | |
| |
| | #5 |
|
thanks well i have just downloaded an ebook on perl ... lets hope i can make something of it :lol: (btw is perl the only language capable of such things? or are there others) Kane | |
| |
| | #6 |
|
You can use java, perl, c, c++, most anything, but perl is probably the easiest to use and get working quickly. in particular, it has very rich text processing capabilities -- they come in quite helpful when building web interfaces.
| |
| |
|
| Thread Tools | |
| Display Modes | |
| |