note 45580 added to keyword.paamayim-nekudotayim

From: Date: Sat, 11 Sep 2004 17:27:34 +0000
Subject: note 45580 added to keyword.paamayim-nekudotayim
Groups: php.notes 
Request: Send a blank email to php-notes+get-76483@lists.php.net to get a copy of this message
In reply to (tango23 at inbox dot lv)'s posting, there is no need to instatiate the logger class, nor supply it with a file path. Just do this: . class logger{ ....function log($what_is_to_be_logged){ ........$file_path='filepath'; ........open file($file_path) ........append to file $what_is_to_be_logged ........close file ........return status of action if desired ....} } . To use it, just put it in the prepend file and do this: . logger::log('what is to be logged'); ---- Manual Page -- http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45580 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45580&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45580&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76483) next »