Re: PHP logfile of PHP variables and scripts

From: Date: Mon, 30 Jul 2001 08:04:03 +0000
Subject: Re: PHP logfile of PHP variables and scripts
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-61466@lists.php.net to get a copy of this message
UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!! "Stig S. Bakken" schrieb: > Alex Vincent wrote: > > > > One thing I've been thinking about recently is a desire for PHP to > > provide a function whereby PHP scripts can log incoming variables (such > > as $HTTP_POST_VARS) and the PHP scripts which process them. Such a > > function can prove very useful in knowing what a particular user has > > done. > > > > Of course, not every PHP script needs logging in this sense. For > > instance, if I grab a file from the server and dispatch it to the client > > via PHP, that likely doesn't need logging. But a PHP script call which > > includes dropping a MySQL database is another matter... > > > > I like the idea of autologging for two reasons. One is to allow me to > > easily construct a PHP script for replicating my work elsewhere, > > including creating a database holding the same structure but no > > information. (This advances the cause of open-source development, in my > > opinion.) The other is in case someone uses a PHP script on my site > > maliciously; not only will I be able to track down who did it, but I > > will likely be able to restore more of what they damaged, entirely. > > > > I wrote one possible autologger script. My friend (who is much more > > experienced in PHP than I am) expanded it somewhat. I'd like to see > > what the PHP development team thinks of adding an autologger function to > > the PHP library of functions. > > > > Say, logPHPInstance($filename) (which includes a boolean value to > > disable the autologger function within the log, in case someone tries to > > execute the log file all over again without editing it.) > > > > http://freewarejava.com/ubb/Forum5/HTML/002241.html > > > > Opinions? > > Try posting the idea on pear-dev@lists.php.net and see if someone > catches on to it. If not, I'm afraid you'll have to do it yourself if > you want it. :-) > > - Stig > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#61466) next »