I have a question on how to make my Terminal command line interface on Mac to use MAMP's PHP and MySQL instead of what's already installed on my machine. I created a new file in my home directory called .bash_profile and I added this:
PATH=/Applications/MAMP/bin/php5/bin:\ /Applications/MAMP/Library/bin:$PATH export PATH
Now when I type "which mysql" is shows correctly that it's using MAMP. But when I try "which php" it's still using the pre-installed Mac version. Any idea on how I can get it to use MAMP instead?