Skip to content

Instantly share code, notes, and snippets.

@boyvanamstel
Created August 15, 2011 14:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boyvanamstel/1146834 to your computer and use it in GitHub Desktop.
Save boyvanamstel/1146834 to your computer and use it in GitHub Desktop.
Show all output of exec() or system() commands in PHP or Rails
Just append 2>&1 to the command to redirect all ouput to standard out instead of the error stream.
Source: http://stackoverflow.com/questions/714740/php-exec-is-failing-silently
@internetztube
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment