Re: Getting line count of a text file
| From: | mike | Date: | Thu, 13 Sep 2007 04:28:18 +0000 |
| Subject: | Re: Getting line count of a text file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262073@lists.php.net to get a copy of this message | ||
On 9/12/07, Chris <dmagick@gmail.com> wrote:
> bruce wrote:
> > greg...
actually, i was the one that said this.
> Sure they can - enable safe-mode and it causes all sorts of weirdness
> with running exec or system calls.
not to mention shell commands expect to be in PATH, and if you
hardcode in /bin/awk, it might not be the same location in freebsd vs.
linux vs. solaris vs. another unix. or a crippled or broken system.
> I also disable exec/system calls in php altogether by editing my php.ini
> file (see disabled_functions).
>
> Lastly wc and awk and sed are not part of the shell, they are external
> programs.
thank you.
> Shell functions are things like if, while, do.
exactly, thank you. your reply was much more eloquent than what i
would have said.