Re: Getting line count of a text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/12/07, Chris <dmagick@xxxxxxxxx> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux