I use PHP 5.6.30 and I update into 7.20 but every time I open new terminal tab I've to switch version by using
export PATH=/usr/local/php5/bin:$PATH
Is theier any way to use version 7 withour using this command line ?
write the env var to profile
:
vi /etc/profile
export PATH=/usr/local/php7/bin:$PATH
### then
php run.php
or
start script with php7
:
/usr/local/php7/bin/php7 run.php