Just to start playing, all you need is that versions PHB. If you're going to DM a campaign, however, you'll also want the MM and the DMG.
Getting 3.0 or 3.5 books at this poing is nigh impossible, unless you can find someone selling them used on Amazon. However, IMHO if you're looking at that style of play I would highly recommend Pathfinder. 4.0 books are currently still available, but will be hard to find once 5e (or whatever they're going to call it) comes out.
If I were to start a 3.0, 3.5 or 4.0 game, what books would I need?