Different PHP CLI version for just 1 command

Started by dftd, November 02, 2020, 07:17:31 PM

Previous topic - Next topic

dftd

Hi!

My default PHP version is 7.3. I have CWP Pro and PHP 5.6 installed via PHP Selector V2, which is used on 1 domain.
How do I run a command in CLI with PHP 5.6, without changing the default CLI version?

Thanks.

dftd

`opt/alt/php56/bin/php` instead of `php` in CLI.
Took me a while to find the real path.