Date: Fri, 18 Mar 2016 02:33:15 -0500 From: "Matthew D. Fuller" <fullermd@over-yonder.net> To: Yao Bao <by@reorigin.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Strange php shell_exec() issue. Message-ID: <20160318073315.GC4672@over-yonder.net> In-Reply-To: <201603180709.u2I79T2i005577@reorigin.com> References: <201603180709.u2I79T2i005577@reorigin.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 18, 2016 at 03:09:29AM -0400 I heard the voice of Yao Bao, and lo! it spake thus: > > I execute the command via shell and php CLI, both return the same > right result. But the problem is, when I try to echo the result on > browser, the number field of the output doubled! Perhaps you've got $BLOCKSIZE=1024 in your env, so when you run it from your shell (or a descendent thereof), it's showing the output in multiples of 1k, but from the web there's no such env, so you're showing in multiples of 512. Try with du -k (or -h, if it's for human consumption anyway). -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160318073315.GC4672>