PHYSICS OF THE INTERSTELLAR AND INTERGALACTIC MEDIUM.