Simon Davies had put Fulham ahead when his early free-kick evaded everyone in the West Ham box and crept inside the far post.

Dean Ashton headed the Hammers level but was then twice denied by acrobatic saves from Cottagers goalkeeper Antti Niemi, who brilliantly deflected one close-range strike on to the bar and then dived to palm away another.

But there was nothing the Finnish goalkeeper could do to stop Ferdinand's first-time shot into the roof of the net which sealed a valuable home win for West Ham.

The Hammers' home results have picked up in recent weeks and the win over Fulham follows an FA Cup third-round draw with high-flying Manchester City last week and a league win over Manchester United.

Manager Alan Curbishley said: "We didn't start so well and Anton copped it at half-time. I wasn't happy with how he and Matthew Upson started.

"But they came out to put it right. We wanted to cement our position in the top half and this was a big result for us."

Once West Ham settled and began playing a faster brand of attacking football - rather than relying on long balls forward - Ashton looked increasingly dangerous.

And Freddie Ljungberg enjoyed arguably his best game for West Ham, testing the Fulham rear-guard with a series of excellent crosses from the right.

"We feel if we can give Ashton the chances he will take them. Niemi made a fantastic save to deny him," said Curbishley.

"He is trying to get fit in the first team and it is a case of him getting a bit sharper and us playing better to give him the chances.

"Today we felt that if we could get the ball into the box we would cause them problems. "We had one cleared off the line from Carlton Cole and Niemi has made a couple of saves. I think we created the better chances."

Defeat was doubly tough for Fulham because relegation rivals Wigan won at Derby while fellow strugglers Middlesbrough drew with Liverpool and Birmingham earned a point at Arsenal.

Fulham manager Roy Hodgson said: "There are enough games left. It will not be easy but it won't be easy for many of the other teams around the relegation zone either. I believe we can do it."

But that will involve some successful raids in the transfer market. Hodgson would not expand on Fulham's attempts to sign Watford striker Marlon King.

He said: "We had chances at the end and it was difficult to see a point disappear.

"I can't complain about the discipline, the work rate and the effort but the balance in our team is not right at the moment and we will have to work to bring those types of players in."