What server are you using? Apache, IIS, LightTPD?
If it's apache, you might want to try adding the PHPIniDir directive to your httpd.conf file to point to the correct php.ini.
I'm not 100% sure why you would edit the registry, as setting an environment variable should be enough, and that's typically for php modules to load correctly.