I have one server (test) which has "php" command that I can run CLI with. The other server (hosting) runs only with "php5-cli" command.
Example:
exec("php file.php"); // Works on test server
exec("php5-cli file.php"); // Works on hosting server
How can my script detect which one to use?