The X-Ray Corona and the Photospheric Magnetic Field