Quantcast
Viewing latest article 1
Browse Latest Browse All 8

How to get currently-connected server?

This may be a really simple question, but I can't find where in the documentation it might be mentioned.

 

How can I get the name of the server to which I'm connected?  In many cases, this would be just the return value of Opts::get_option('server'), but if I'm using a session file, that appears to always return "localhost", which is not what I want.

 

Any pointers would be appreciated.


Viewing latest article 1
Browse Latest Browse All 8

Trending Articles