arduino with php and java

Hello everyone!
I am a guy who would like to have a system at home that lets me control for example lamps and sensors via a computer interphace. I would like to have a php based internet server which I am going to access with login and password (No problem here). However I havent found a suitable interphase for my computer. Now I was woundering if the aurdino dieciemilla usb board will do the trick. I have seen that it works quite easy to program it with the software you can download from the arduino homepage but is it possible to acces the card from other programming languages such as java and php? Do you have any example code how to access the card from these two programming languages?
I thank you for all the help I can get

Best regards
Jonas

It's very easy to communicate with your arduino using the serial interface

This Perl example will write to the serial port connected to your arduino

#!/usr/bin/perl

use Device::SerialPort;

my $port = Device::SerialPort->new("/dev/ttyUSB0");
$port->databits(8);
$port->baudrate(9600);
$port->parity("none");
$port->stopbits(1);

while (1) {

my $variable = $port->write("$string");

# do stuff

}

PHP would be similar

Java not so much

:slight_smile: