Patch providing new function apache_get_scoreboard()

From: Date: Wed, 08 Oct 2003 08:55:25 +0000
Subject: Patch providing new function apache_get_scoreboard()
Groups: php.internals 
Request: Send a blank email to internals+get-4746@lists.php.net to get a copy of this message
Hello, Here's a patch against PHP_4 that provides a new function called apache_get_scoreboard(). The function returns an array containing current scoreboard. The idea behind this is to provide a flexible way to dump Apache scoreboard. There are several applications that I can think of : a tool such as Apache::VMonitor (ie mod_status page on steroïds), dumping the scoreboard in XML format for a monitoring application (that would also generate graphs representing Apache activity), or text format for a command-line tool, etc. There's a drawback though, which somewhat breaks the "rule" (if any) "write once run everywhere" because Apache scoreboard structure depends on the platform and on the version of Apache. I chose however for simplicity to do a strict mapping of the structure. I've attached a supersimple test script. This is my first PHP hack so comments are welcome, Thank you, Olivier

« previous php.internals (#4746) next »