doudi8829 2017-03-30 16:55
浏览 49

OS X PHP版命令行

I've got installed php 7.1.0 and 5.6.27 on my OS X. On setup it seems like I've failed.

Using php -v returns 7.1.0. But when I navigate to /usr/local/bin/ there are two php bins

php
php-cli

Executing both -v returns 5.6.27. When I use which php I get of course:

/usr/local/bin/php

How would I need to place php7 (and how to get the bin?) so I can use for example php7 on terminal to execute PHP7 scripts?

  • 写回答

0条回答 默认 最新

    报告相同问题?