how to run as php CLI in linux code example Example: php run command line shell_exec('ls'); // or exec('ls');