Re: Is there a way to write to the php error log from a php script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 22, 2010 at 20:24, Tamara Temple <tamouse.lists@xxxxxxxxx> wrote:
> I'm trying to log some data for debugging and don't have use of the standard
> output to do so. I'd like to write the info to the php error log. Can this
> be done from within PHP? I've searched the web site for logging functions,
> but cannot find any.

    Sure.  You can use trigger_error() and error_log() for that.

-- 
</Daniel P. Brown>
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux