note 18647 added to function.passthru

From: Date: Wed, 30 Jan 2002 12:35:54 +0000
Subject: note 18647 added to function.passthru
Groups: php.notes 
Request: Send a blank email to php-notes+get-26032@lists.php.net to get a copy of this message
The documention does not mention that passthru() will only display standard output and not standard error. If you are running a script you can pipe the STDERR to STDOUT by doing exec 2>&1 Eg. the script below will actually print something with the passthru() function... #!/bin/sh exec 2>&1 ulimit -t 60 cat nosuchfile.txt -- http://www.php.net/manual/en/function.passthru.php http://master.php.net/manage/user-notes.php?action=edit+18647 http://master.php.net/manage/user-notes.php?action=delete+18647 http://master.php.net/manage/user-notes.php?action=reject+18647

« previous php.notes (#26032) next »