MainelyDesign.com Blog

Getting output from shell_exec() at all times

Posted on 11/14/2016 at 12:18 pm by Kevin Wentworth
Viewed 7,489 times | 0 comments

Sometimes shell_exec() won't output anything.  This might be because of an error or a silent success.  If you want to see the output, you can always do this:

  1. $output = shell_exec('$HOME/aaa/command 2>&1');
  2. echo "<pre>$output</pre>";
Bookmark and Share

Tags for Getting output from shell_exec() at all times

Web Programming | Web Server Admin

Comments for this Posting

No comments. Be the first to post a reply.

Sorry, comments are closed for this posting.

Please Email Kevin if you have any questions. Thanks!

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design