exec() vs shell_exec() September 18, 2013Sh*tsPF exec() executes an external program shell_exec() executes a command via shell and returns the output as a string