Although Preah Vihar temple (or Khao Phra Wihan as the Thais call it) is technically (just) inside Cambodia, the easiest access is from the Thai side of the border, from which it is just a short walk to the ruins.