I'm trying to run this console command from web: shell_exec('php cli_script.php')
and it works for me on the local machine but I don't know where is php on others machines.
Is it possible to get current location of php binary for either systems Windows and Linux?
whereis
and which
don't work on Windows so I can't parse the output.