David James has extended his Portsmouth contract to 2010.
England goalkeeper James said: "It's been a tremendous week and I'm delighted to get the opportunity to sign a new contract.
"I'm enjoying being at Pompey - it's a fantastic environment. I never envisaged the club being in this position when I joined."