Relegation-battlers West Ham moved clear of the bottom three as Burnley were beaten 5-3 at Upton Park.

Gianfranco Zola's men recorded only their third Barclays Premier League win of a difficult campaign after three goals in the first half put them in command.

Jack Collison capitalised on some static defending to race on to Scott Parker's free-kick and fire the Irons ahead on 18 minutes.

Junior Stanislas slotted home a second, before Carlton Cole converted a penalty as Burnley were made to pay for poor defending after what had been a bright start by the visitors when Clarke Carlisle's header was cleared off the line.

It was damage limitation for the Clarets - who have just one point from seven away matches on their return to the top flight - after the hard-working Guillermo Franco headed in a fourth on 51 minutes.

However, there was still time for substitute Luis Jimenez to net another penalty after he was brought down by keeper Brian Jensen to give the Irons a morale boost ahead of next week's visit of champions Manchester United.

Steven Fletcher's late double gave Burnley some consolation, before Steven Caldwell was sent off during stoppage time and Chris Eagles then netted a third.

The visitors had actually started well and West Ham looked nervy at the back as England keeper Robert Green spilled a near-post strike from Andre Bikey and Eagles, the former Manchester United trainee, whipped over a cross from the right which flew through the six-yard box.

The Clarets - who have won five times at Turf Moor, including victory over United - almost took the lead on nine minutes when Clarke Carlisle's downward header from a corner was cleared off the line by Parker.

West Ham were then denied by the woodwork after Franco's header from Collison's cross came off the top of the bar, and eventually took the lead on 18 minutes.

Parker's quickly-taken free-kick caught the Burnley defence cold as Collison beat a static offside trap to run clean through and slot past Jensen.

Before Burnley could recover, West Ham doubled their lead on 34 minutes.

The busy Franco slipped a reserve pass through to Stanislas on the right.

The England Under-21 winger looked to have missed his opportunity when Jensen made a smart save at his near post - only for the Burnley keeper to get his angles all wrong from the rebound, as Stanislas guided the ball inside the far post.

West Ham had a penalty just before the break when Jonathan Spector charged on to Radoslav Kovac's pass and into the right side of the area, before being brought down by Robbie Blake.

Cole - still limping after needing treatment for a foot injury - stepped up to drill in the spot-kick for his seventh goal of the season.

The England striker, who had just come back from injury, was replaced by youngster Zavon Hines for the start of the second half, with West Ham making it 4-0 on 50 minutes.

Stanislas whipped a free-kick from the right across the six-yard box, where Franco got in front of the Burnley defenders to head home.

Burnley substitute David Nugent missed two golden chances in quick succession to pull a goal back for the visitors, before referee Chris Foy pointed to the spot once again after Chile forward Jimenez was brought down by Jensen as he dashed into the right side of the penalty area.

Jimenez, on loan from Inter Milan, stepped up to take the spot-kick himself, and lashed it into the right corner for his first West Ham goal.

To their credit, Burnley kept going - and at least had something to show when Fletcher netted a late double, both after good work from Eagles, whose long-range free-kick then struck the post.

Burnley, though, finished with 10 men when, in stoppage time, Caldwell was shown a straight red for pulling down Hines, before Eagles netted a third.