Abstrna: Glasses prepared in the NazO-&O,-P205 systems (M=Ga, Fe) have been studied by X-ray absorption -y at the Ga and Fe K-edges. When these atoms are found in 6-fold wordination, striking similarities are found between theu XANES spectra and those of some crystalline diphosphates. From the simulation of the XANES spectrum of crystalline NaFePze using the FEFF6 code, an ordering of the phosphorus atoms linked to the Fe06 octahedra is evidenced in the glasses.