/ Published in: PHP
Set the correct path to use php cli in Terminal, with Mamp instead of default php installation of Osx.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
> export PATH=/Applications/MAMP/bin/php5.3/bin:$PATH or equivalent path of MAMP php installation. On next Terminal session it will use MAMP php executable instead of OSX default (thus enabling the use of cli for use with frameworks and like).
URL: http://stackoverflow.com/questions/954910/using-the-php-cli-with-mamp