Ah - mystery solved! I downloaded an installer version of PHP and also a set of extensions that it appears are for version 4. I have just downloaded the source for version 5 and all is now fine.
I really think the site should make it 100% clear, or better still the windows installer also contain the extensions.
Thanks so much for your help.