If you want to get the output of a command use the function shell_exec($command) - it returns a string with the output of the command.
If you want to get the output of a command use the function shell_exec($command) - it returns a string with the output of the command.