[PHP] subscripting an expression possible?

2002-04-17 Thread Bob Mroczka
Is it possible in php4 to retrieve an array value from an expression that returns an array without first storing the resultant array in a temporary variable? For example, I would like to do something like this: echo (posix_uname())["nodename"]; Instead of: $tmp = posix_uname(); echo $tmp["nodena

[PHP] is there a way to set apache's auth_user from php?

2001-02-22 Thread Bob Mroczka
I would like to have the authenticated user name appear in my apache access web logs but I am not using HTTP authentication. I am using phplib to have better control over the authentication process. Is there a way to set this apache api variable from php code so that apache will log these user na