"Vins" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> if(!ereg("^#(.)*$", $buffer[$i]))
> {
> echo "ok";
> }
>
> what does this mean?
It takes a string ($buffers[$i]) and tries to
match it with a regular expression. The
expression reads "a string beginning with
any character except '#', followed by 0 or
more of any character to the end of the
string". The number of matches found is
returned, and if the number is 0 ('not not-false'),
it prints "ok".
Boiled down, it is 'ok' if the string
doesn't start with '#'.
At a guess, it looks like someone is
stripping comments from a shell script.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php