I want to configure php.ini for register global and to enable phpgd2.dll extension
1st I found many php.ini files on my server, which one should I edit?
2ns There is no pgpgd2 extension on these php.ini files only phpgd.dll is the same extension?
In answer to (1) it's probably something like /usr/local/lib/php.ini , but if you run phpinfo it'll tell you which one is being used.
If you've never come across phpinfo before, just upload the following code into a file:
<?php phpinfo(); ?>
And call it from the browser. The path to php.ini should be displayed next to the Configuration File (php.ini) Path field.
I'm not entirely sure what you're getting at with phpgd but GD is normally compiled into PHP via the --with-gd option. The phpinfo stuff mentioned above will also show you what, if any, GD support you have compiled into your PHP.