Page 1 of 1

How can I get status info of Client and Server

Posted: Wed Dec 15, 2004 6:30 pm
by bao
Hi Everyone,

please see this URL,
http://www.php.net/server-status

Who knows the functions of php to get the status of server and clinet.

Thanks, look forward to hearing from you soon,

Michael

Posted: Wed Dec 15, 2004 8:57 pm
by timvw
you need to edit your httpd.conf ;)


LoadModule status_module modules/mod_status.so

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".localhost" to match your domain to enable.
#
<Location /server-status>
SetHandler server-status
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from .localhost
</Location>

Posted: Thu Dec 16, 2004 12:28 pm
by bao
Could you tell me how to get server status on IIS?

Thanks

Posted: Sat Feb 11, 2006 4:14 pm
by CentaurAtlas
timvw wrote:you need to edit your httpd.conf ;)
I thought the question was how to get those variables via PHP.

E.g. how do you say pull out the number of active connections from mod_status via php?