Re: Re: Working Version of Net_Monitor - Please Review :)
| From: | bertrand Gugger | Date: | Thu, 09 Dec 2004 21:12:53 +0000 |
| Subject: | Re: Re: Working Version of Net_Monitor - Please Review :) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-34983@lists.php.net to get a copy of this message | ||
Robert Peake wrote:
Hi Bertrand, The message is what the Net_* package returns. The default is English for these packages. However, using the code/service combination I could easily see definining:So no need to store it.
$_language[fr][HTTP][404] = "La page que vous recherchez n'existe pas ou a été déplacée";Bravo pour le français, for the PHP you mean $_language['fr']['HTTP'][404] ? (string indexes quoted) I would not be sure it would be handled this way in the script.
to support foreign languages. In your hypothetical situation, the team could receive any combinbation of message/service/code to help debug the problem. The most terse is probably "host: service: code".Hypothetical/historical ;) you mean it could give a code 'freezed' or 'handled' Yes, but should the service give it. So it becomes complicated because it's the guy handling saying that.
Having the code standard across all services (200 = OK, etc.) makes more sense than defining a unique numeric code for every type of service, since it becomes easier to see at-a-glance what is 200 (OK) and what is down (0). However, the actual messages returned by the various Net_* packages can be very useful in their own right, which is why they are included.So my service's 200 is bad state, what should I do ? What about the other questions from my message ? à+ -- bertrand Gugger (toggg)