Hi,
The cheapest and easiest way is to get a printer card (parallel port) from ebay.
That is cost about 5£ ( 8$ ) and you will get 8 port that you can easily switch on and off from any programs.
Like this one:
http://www.ebay.co.uk/itm/PCI-IEEE-1...item43a1c7cfa1
If you want to control something like 220V AC you can get a solid state relay that can controll anything on the AC.
For example lamps, tv, anything on the AC 220V.
So the relay look like this:
http://www.ebay.co.uk/itm/New-SSR-25...item35b561017f
Obviously you have to know how to connect them otherwise you can get killed by the electric shock, so be really carefull!!!
I used this kind of electronic kits for playing with lamps when I worked in a Theater as a lighter guy.
So the printer card has 8 output and can be triggered from a program. It has 5V output with usually 50mA or something current.
You can easily switch on LEDs or solid state relays too.
I used it ages ago on DOS system when the linux was not even around just yet
Anyway if you need more help with it just let me know.
I look around how to make some program to switch the outputs from terminal or from apache web server like php script or something.
Imagine that you can switch on the garden water tap from your mobile phone or open the garage door?
Cool init?
By the way there is the diagramm how to connect the leds:
http://www.studentsharez.com/thread-1308857.html
Regards
Laz