I found a couple things wrong which I expected to be already set but they weren't. The extension directory wasn't set so it was trying to find the extensions in the c:\php directory. I set that and un ';' the gd and gd2 extensions, but that gave me an error saying that the functions were being duplicated.
I disabled gd2 and the script I was trying to run goes fine now.