I have 2 version php in my linux. Php version 5.3.8 and 7.0. So how i switch them?
1. check your php version
$ php -v
2. and then, add path .bashrc
$ nano ~/.bashrc
3. add the path that you install php in the end of line PATH=/opt/lampp/bin:$PATH
4. and save file
5. restart your terminal and check your php version
1. check your php version
$ php -v
2. and then, add path .bashrc
$ nano ~/.bashrc
3. add the path that you install php in the end of line PATH=/opt/lampp/bin:$PATH
4. and save file
5. restart your terminal and check your php version
Komentar
Posting Komentar