Al wrote:
Seems like this does what you are attempting.
if(DEBUG_MODE) // TRUE for debug only
{
ini_set("display_errors", "on"); //use off if users will see them
error_reporting(E_ALL);
echo 'Error display and logging on ';
}
If I understand this correctly this "if" statement di
Seems like this does what you are attempting.
if(DEBUG_MODE) // TRUE for debug only
{
ini_set("display_errors", "on"); //use off if users will see them
error_reporting(E_ALL);
echo 'Error display and logging on ';
}
Mark Weaver wrote:
Hi all,
I've been lurking and reading now fo
Al wrote:
int file_put_contents ( string $filename, mixed $data [, int $flags [,
resource $context]] )
This function is identical to calling fopen(), fwrite() and fclose()
successively to write data to a file.
This native function does it for you
Very nice! I wasn't aware of this one. Tha
Dave Goodchild wrote:
Why are you writing a logging class? Why not use error_log and enable error
logging?
two reasons actually,
1. learning OOP for PHP, so the more I practice at it the better I get.
2. the logging that's being done with this class is done primarily for
debugging during th
Quoting Dave Goodchild <[EMAIL PROTECTED]>:
Why are you writing a logging class? Why not use error_log and enable error
logging?
Maybe he wants to log user actions in an application? Can log so much
more then just errors.
But the answer to this problem was already given. :)
On Fri, Mar
Why are you writing a logging class? Why not use error_log and enable error
logging?
On Fri, Mar 21, 2008 at 1:11 PM, Al <[EMAIL PROTECTED]> wrote:
> int file_put_contents ( string $filename, mixed $data [, int $flags [,
> resource $context]] )
>
> This function is identical to calling fopen(), f
int file_put_contents ( string $filename, mixed $data [, int $flags [, resource
$context]] )
This function is identical to calling fopen(), fwrite() and fclose() successively to write data to a
file.
This native function does it for you
Mark Weaver wrote:
Hi all,
I've been lurking and read
Peter Ford wrote:
Mark Weaver wrote:
Hi all,
I've been lurking and reading now for some time, but have decided to
come out of the shadows cause I've got an issue that's gonna drive me
crazy!
I'm developing an application and within this application is a class
that is very simple and only ser
Mark Weaver wrote:
Hi all,
I've been lurking and reading now for some time, but have decided to
come out of the shadows cause I've got an issue that's gonna drive me
crazy!
I'm developing an application and within this application is a class
that is very simple and only serves a singular purp
9 matches
Mail list logo