Measurement of elastic phi photoproduction at HERA