MAMP PHP与Apple的已安装版本

I would like to use MAMP's version of PHP for my local PHP testing and development. I understand that Macs come with a version of PHP installed. I have installed MAMP and everything seems to be going smoothly except error reporting.

In Terminal I have checke which version of PHP my machine is using and it is not the one from MAMP. I have changed MAMP's php.ini files to report all errors. I am not getting any errors in my testing. I am inserting obvious errors to test for.

My questions are: How can I disable or remove the preinstalled version of PHP? How can I set my machine to use only MAMP's version of PHP? Can I test multiple versions of PHP at once? Is it recommended? How can I stay up to date with the latest version of PHP? Is it like normal Software Updates?

-Josh

Add/change following line in ~/.profile or ~/.bashrc (for bash): export PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php5.2.17/bin:/usr/local/bin:$PATH:/opt/local/bin and after that please re-login (or just execute e.g. /bin/bash).

From http://drupal.org/node/1464236

You can change the version # to the version you want.