note 78062 added to ref.exec

From: Date: Wed, 26 Sep 2007 14:21:20 +0000
Subject: note 78062 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-130797@lists.php.net to get a copy of this message
Just a small notice, when running PHP under MS Windows some external command-line utilities (like 'ffmpeg.exe') output all info to stderr instead of stdout. In my case it caused apache error.log overfilling with lots of unsolicited records. It has just taken some time for me to make the utility silent: Simply add ">NUL 2>&1" to the very end of your command line. It makes cmd.exe to redirect stderr to stdout and then, in one's turn, redirect stdout to NULL. Hope this tip will save some time when dealing with such utilities. ---- Server IP: 195.54.192.44 Probable Submitter: 195.133.60.161 ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit -- https://master.php.net/note/edit/78062 Del: integrated -- https://master.php.net/note/delete/78062/integrated Del: useless -- https://master.php.net/note/delete/78062/useless Del: bad code -- https://master.php.net/note/delete/78062/bad+code Del: spam -- https://master.php.net/note/delete/78062/spam Del: non-english -- https://master.php.net/note/delete/78062/non-english Del: in docs -- https://master.php.net/note/delete/78062/in+docs Del: other reasons-- https://master.php.net/note/delete/78062 Reject -- https://master.php.net/note/reject/78062 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130797) next »