I have installed XAMPP on Mac OSX running Yosemite I have created the .bash_profile file like this:
export XAMPP_HOME=/Applications/XAMPP/xamppfiles
export PATH=${XAMPP_HOME}/bin/php:${PATH}
export PATH
When I type echo $PATH in terminal, I get correct XAMPP path But when I type "which php" it shows /usr/bin/php
How can I make my XAMPP use the correct php instead of default php that came with mac?
See Question&Answers more detail:os