When I execute which php in Bash I get /usr/bin/php. Everything is working fine but I'm wondering - since I'm running XAMPP, should I get /Applications/XAMPP/xamppfiles/bin instead?

Note: I'm using OSX 10.7.

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

/usr/bin/php mean it's php default installed on macos, for xampp it should be on /Applications/XAMPP/xamppfiles/bin. if you want use php version from xampp, you can disabled /usr/bin/php and make symlink /Applications/XAMPP/xamppfiles/bin/php to /usr/bin/php.

link|improve this answer
Is there any benefit to using XAMPP's own php binary instead of the one of the OS? – Emanuil Rusev Aug 15 '11 at 10:30
if you develop and tested using XAMPP, better using XAMPP version, because it could be php version/setting different. sometimes xampp version and macos one include different php modules. – Rikih Aug 15 '11 at 10:33
Aren't PHP modules separate files? – Emanuil Rusev Aug 15 '11 at 10:46
yes,you're right. but when you execute php, it will loaded the modules that you enabled on php setting. – Rikih Aug 15 '11 at 11:48
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.