note 57904 added to function.exec

From: Date: Tue, 18 Oct 2005 18:00:33 +0000
Subject: note 57904 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-97180@lists.php.net to get a copy of this message
exec strips trailing whitespace off the output of a command. This makes it impossible to capture signifigant whitespace. For example, suppose that a program outputs columns of tab-delimited text, and the last column contains empty fields on some lines. The trailing tabs are important, but get thrown away. If you need to preserve trialing whitespace, you must use popen() instead. ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57904 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57904&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57904&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57904&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57904&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57904&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57904&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57904&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57904&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97180) next »