[PHP-DOC] Bug #17713 Updated: Request Reverse Lookup Reserved Variable

2002-06-15 Thread sniper

 ID:   17713
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Analyzed
-Bug Type: Feature/Change Request
+Bug Type: Documentation problem
 Operating System: Solaris,freebsd
 PHP Version:  4.2.1
 New Comment:

This was easy to implement. :)
Just set 'HostnameLookups On' in httpd.conf
and you'll get an extra variable: REMOTE_HOST which
contains this information.

This just isn't documented (in predefined variables).
It's ONLY available when the above mentioned directive is set 'On'.



Previous Comments:


[2002-06-11 20:26:22] [EMAIL PROTECTED]

I understand it can be done with one statement. but I figure if apache
already has this done, it would be less demanding to just have a way to
grab it with a variable. I already discovered how much it kills the cpu
to reverse the ip. But since on some machines it's already reversed why
not take advantage of this and save yourself the second step of
reversing something that has already been reversed.

Was just a thought. I understand if it's not a good idea.

Sorry again

Victor Nolton



[2002-06-11 19:50:52] [EMAIL PROTECTED]

Yasuo, the request was for the possible already reversed
name. That would not increase any but the opposite since
that is already done: Now you _have_ to do that anyway..

Not sure though if this is possible.




[2002-06-11 19:44:38] [EMAIL PROTECTED]

IMO, we shouldn't do that. It can be done by 1 line of php script. As
you know, DNS lookup is _expensive_ operation and kills performance a
lot. If you need reverse lookup, do it by yourself.






[2002-06-11 16:05:34] [EMAIL PROTECTED]

$REMOTE_ADDR returns the ip of the remote user 127.0.0.1 (example).
Some of us have apache setup to do reverse lookups of the ips for
logging. Could there not be a way (without using a lookup function) to
have a reserved variable return the already reversed IP?
$REMOTE_ADDR_EXT could maybe return www.blah.com

Just a request. Sorry to bother you all.

Victor 'Ven' Nolton




-- 
Edit this bug report at http://bugs.php.net/?id=17713edit=1




[PHP-DOC] Bug #17713 Updated: Request Reverse Lookup Reserved Variable

2002-06-15 Thread vnolton

 ID:   17713
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Analyzed
 Bug Type: Documentation problem
 Operating System: Solaris,freebsd
 PHP Version:  4.2.1
 New Comment:

Thanks guys. I swear I investigated this for a long time.. I guess I
missed it :(

Thanks


Previous Comments:


[2002-06-15 22:37:23] [EMAIL PROTECTED]

This was easy to implement. :)
Just set 'HostnameLookups On' in httpd.conf
and you'll get an extra variable: REMOTE_HOST which
contains this information.

This just isn't documented (in predefined variables).
It's ONLY available when the above mentioned directive is set 'On'.




[2002-06-11 20:26:22] [EMAIL PROTECTED]

I understand it can be done with one statement. but I figure if apache
already has this done, it would be less demanding to just have a way to
grab it with a variable. I already discovered how much it kills the cpu
to reverse the ip. But since on some machines it's already reversed why
not take advantage of this and save yourself the second step of
reversing something that has already been reversed.

Was just a thought. I understand if it's not a good idea.

Sorry again

Victor Nolton



[2002-06-11 19:50:52] [EMAIL PROTECTED]

Yasuo, the request was for the possible already reversed
name. That would not increase any but the opposite since
that is already done: Now you _have_ to do that anyway..

Not sure though if this is possible.




[2002-06-11 19:44:38] [EMAIL PROTECTED]

IMO, we shouldn't do that. It can be done by 1 line of php script. As
you know, DNS lookup is _expensive_ operation and kills performance a
lot. If you need reverse lookup, do it by yourself.






[2002-06-11 16:05:34] [EMAIL PROTECTED]

$REMOTE_ADDR returns the ip of the remote user 127.0.0.1 (example).
Some of us have apache setup to do reverse lookups of the ips for
logging. Could there not be a way (without using a lookup function) to
have a reserved variable return the already reversed IP?
$REMOTE_ADDR_EXT could maybe return www.blah.com

Just a request. Sorry to bother you all.

Victor 'Ven' Nolton




-- 
Edit this bug report at http://bugs.php.net/?id=17713edit=1