#31391 [Opn]: phpinfo -> Apache up-time
| From: | jed@php.net | Date: | Wed, 05 Jan 2005 05:35:49 +0000 |
| Subject: | #31391 [Opn]: phpinfo -> Apache up-time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71470@lists.php.net to get a copy of this message | ||
ID: 31391
Updated by: jed@php.net
Reported By: ceo at l-i-e dot com
Status: Open
Bug Type: Feature/Change Request
-Operating System: All
+Operating System: *
PHP Version: Irrelevant
New Comment:
I do not see any harm in this, save that it would be limiting a feature
to a specific server by design. Perhaps if it was implemented on *all*
SAPIs that it is in context on, not just Apache?
The bigger question, I suppose, is "is this the place of phpinfo()"?
As I understand it, phpinfo() is used to check configuration, but the
manual states:
"Outputs a large amount of information about the current state of
PHP."
Perhaps server uptime *is* 'the current state of PHP'? Is this
information readily obtainable through other means? Would this be
better implemented as 'apache_get_uptime()'?
Just points for discussion, I am not going to take any action on it.
Previous Comments:
------------------------------------------------------------------------
[2005-01-03 18:26:51] ceo at l-i-e dot com
Description:
------------
It would be Really Nifty (tm) if phpinfo would output how long Apache
has been running.
So when you think you re-started Apache, but it silently failed because
of a dumb /etc script, you know why that change to httpd.conf or php.ini
didn't work.
Or if you're a newbie and you are staring at that phpinfo() output,
you'll realize more quickly that the world is not what you think it is,
because Apache was supposed to have been re-started.
Or...
I just think it would help reduce the number of confused users,
particularly the less experienced ones.
Hey, server up-time would also be Good Thing (tm), while you're at it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31391&edit=1