Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I presume that these are mains lamps?, if so the safest way is to use logic level optocouplers, and use the outputs to drive triacs. If you only need up to 8 outputs, you can use D0-D7 on the port. Any PC language should be able to print out characters to the port. You just need to look up ASCII codes to get the correct pattern.