Sergei Rebrov scored his first goal for West Ham as they shaded Notts County.
Bobby Zamora twice put the Hammers in front, only for Kelvin Wilson and Ian Richardson to equalise, while Zamora's late penalty was saved by Saul Deeney.
Zamora tapped in his first after 18 seconds before Notts County's Wilson struck with a header 13 minutes later.
Despite County pressure, Zamora scored again on 54 minutes before Richardson hit back three minutes later, only to be thwarted by a Rebrov free-kick.
West Ham: Walker, Brevett, Repka (Melville 70), Mackay,
Mullins, Etherington (Cohen 89), Lomas, Reo-Coker, Rebrov,
Subs Not Used: Bywater, McClenahan, Ashikodi.
Goals: Zamora 1, 54, Rebrov 62.
Notts County: Deeney, Pipe, Richardson, Edwards (Williams 53),
Whitlow, Ullathorne (Oakes 86), Wilson, Bolland, Gill, Hurst,
Subs Not Used: Mildenhall, Harrad, Robinson.
Goals: Wilson 13, Richardson 57.
Ref: I Williamson (Berkshire).