note 11813 added to function.exec.php
| From: | cosmic at iweb dot net dot au | Date: | Thu, 08 Mar 2001 10:29:49 +0000 |
| Subject: | note 11813 added to function.exec.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12029@lists.php.net to get a copy of this message | ||
It seems that redirecting standard error does not work for all shell commands.
For instance I can not receive all return data from an nslookup command even if I add 2>&1
onto the end of the command.
It only returns the first 2 lines(standard output) and no more.
Other commands work fine with no problems aka fwhois.
Can someone explain why some programs dont return all output to a cgi.
Ive had a similar problem with a perl script which I ended up having to use wget instead of snarf
because I could not manage to get the data from snarf to redirect/return to perl.
This is the standarderror which im trying to capture in php, does anyone have any ideas on this?
*** ns1.iweb.net.au can't find dohdamnit.com: Non-existent host/domain
http://www.php.net/manual/en/function.exec.php