how to run php script from command line code example Example: php run command line shell_exec('ls'); // or exec('ls');