Can this be done on the fly using PHP?
I have a list of addresses with uk postcodes, but I need the longitude and latitude to use with google maps?
You'll generally need to pay a license for a DB of postcode to lat/lon lookups, you can find a more basic list free online (not sure how this is licensed) but this only finds the first part of the postcode (eg SW9).