Have looked into this myself as well as groundsource heat pumps inspired by watching Grand Designs.
As stated above if a hot n sunny climate it's ideal but here in the UK it may be many years before you start to see a return on your money.
There are 2 types of solar panels pv (photovoltaic) which produce low voltage electricity needs a bank of batteries to store the excess in (people need more electricity when the sun has gone down ) and an inverter to boost it up to mains voltage for use in the home.
http://en.wikipedia.org/wiki/Photovoltaic_modu le
The other type are called solar collectors and are used to produce hot water. They are filled with a type of anti freeze liquid which is circulated via a pump to your hot water cylider where it is used to heat the water in the cylinder.
As you can imagine in the UK this will at best produce lukewarm water, so you will need to boost it up by using either a gas boiler or immersion heater. Article here
http://en.wikipedia.org/wiki/Solar_thermal_col lector#Disadvantages
As for costs a hot water system will set you back around �6000 to �9000 depending on your property size. Not sure about pv systems but unlikely to cost much less.
A Gshp system will set you back around �25000 or more for a 3 bed semi and you will need a lage area of ground prep south facing and unshaded for it to work.
http://en.wikipedia.org/wiki/Ground_source_hea t_pump
Lots of info here
http://www.energysavingtru