greg...

while you are correct in your assertion that the shell cmds provided are 
specific to linux, your assertion/statement that the functions might be 'turned 
off' are fud... basic bash functions are inherently part of the shell....

and yes, you are correct in your statement that php is relatively cross 
platform, however, i imagine that you can quite easily get into situations 
where your php code has to have different branches based upon the platform that 
it's running on... 

every other language i've ever written for has required me to have subtle 
differences based upon the underlying platform, i'm pretty sure php would/can 
as well.... the assumption here, is that you're getting into complex stuff..

peace.


-----Original Message-----
From: mike [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 12, 2007 2:18 PM
To: Greg Donald
Cc: php-general@lists.php.net
Subject: Re: [PHP] Getting line count of a text file


On 9/12/07, Greg Donald <[EMAIL PROTECTED]> wrote:
> Why?  Shell commands are a lot less likely to change than the
> current PHP function names.
>
> I'm aware the PHP function naming algorithm currently remains a
> secret, but without a doubt, someday someone _will_ crack it.  I
> personally hope this occurs before the renaming of PHP to Java.

if the basic functions i mentioned above change names that one line of
code will be the least of everyone's concerns.

not to mention PHP maintains cross-platform support, whereas shell
commands wouldn't, shell commands may have inherent security risks,
disabled, not installed, selinux or some other weird limitations, etc.
PHP most likely wouldn't have specific basic functions disabled.

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

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

Reply via email to