I'm wanting to update the local version of PHP on my Mac.. i've been doing some digging and got a little confused.

If i run php -i from the terminal it says:

        $ php -i
        PHP Version => 5.3.15
        Configuration File (php.ini) Path => /etc
        Loaded Configuration File => (none)
I was sure i had 5.4 installed so ran phpinfo();

        PHP Version 5.4.5
        Loaded config file: /usr/local/php5/lib/php.ini
A problem i'm having is i can't seem to make any php.ini file work, i'm getting lots of

        Notice: Undefined index:
errors, so error reporting is too high, but no matter how many php.ini files i find and edit it's not taking effect..

I have no idea which version of PHP is being used or why there is two.

Is it possible to disable or remove one of them so i know exactly whats going on, and then i can update it to a newer version?