Using terminal, how do I make OS X use MAMPs version of PHP
问题 I'm currently learning the Yii framework, and one of the tutorials I was running through yesterday required me to test the database connection of a project. The details aren't too important here, but basically when I run shell, and type in the command it throws up an error as follows: server:trackstar charlieryan$ protected/yiic shell Yii Interactive Tool v1.1 (based on Yii v1.1.13) Please type 'help' for help. Type 'exit' to quit. echo Yii::app()->db->connectionString; PHP Warning: PDO::_