Re: Log observers

From: Date: Thu, 10 Jul 2003 18:07:07 +0000
Subject: Re: Log observers
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6556@lists.php.net to get a copy of this message
It's nice OOP and all that, but sometimes, spending hours learning a class with several layers of abstraction doesn't pay when there is an equivalent one-liner that will save time, save code, run faster, be easier to read, and leave no doubt about how it works. system("echo $message >> $logfile"); :-) HTH, - Mitch On Thu, 2003-07-10 at 09:38, Mike Carter wrote: > Hi, > > I'm currently logging words that are entered in to a search box on my web > page. At the same time as logging these words to a text file on the server > I would like to inform somebody via email. > > Is this possible via the observer mechanism? The documentation doesn't > really expain what it is and assumes you know already it seems! > > I can't find any sort of in-depth examples of using the PEAR::Log either. > Help help help much appreciated on this. > > Thanks. > > -- > Mike Carter > [Senior Web Developer] > Personal Medical Advisor Limited. > > T: 0870 240 7582 // F: 0161 928 2932 > E: mike.carter@personalmedicaladvisor.co.uk > W: www.personalmedicaladvisor.co.uk > > ________________________________________________________________________ > This e-mail has been scanned for all viruses by Star Internet. The > service is powered by MessageLabs. For more information on a proactive > anti-virus service working around the clock, around the globe, visit: > http://www.star.net.uk > ________________________________________________________________________ -- Mitchell Perilstein mitch at enetis dot net www.enetis.net/~mitch

« previous php.pear.general (#6556) next »