Project::ExecuteCMD PHP Method

ExecuteCMD() public method

public ExecuteCMD ( )
    public function ExecuteCMD()
    {
        if (function_exists('system')) {
            ob_start();
            system($this->command_exec);
            ob_end_clean();
        } elseif (function_exists('passthru')) {
            ob_start();
            passthru($this->command_exec);
            ob_end_clean();
        } elseif (function_exists('exec')) {
            exec($this->command_exec, $this->output);
        } elseif (function_exists('shell_exec')) {
            shell_exec($this->command_exec);
        }
    }