Connecting Tech Pros Worldwide Help | Site Map

PHP error logs for multiple sites on IIS

  #1  
Old October 17th, 2006, 12:15 PM
newsbandit
Guest
 
Posts: n/a
Hello All, is there a way to specify a php error log for each
individual site on an IIS 6 server? If so how, when I turn on logging
in the php.ini file it seems to be global and all sites dump to one
file. Thank for any help!

  #2  
Old October 17th, 2006, 06:15 PM
Daz
Guest
 
Posts: n/a

re: PHP error logs for multiple sites on IIS



newsbandit wrote:
Quote:
Hello All, is there a way to specify a php error log for each
individual site on an IIS 6 server? If so how, when I turn on logging
in the php.ini file it seems to be global and all sites dump to one
file. Thank for any help!
I'm not sure if what you're trying to do is entirely possible, as the
log is for PHP errors and not PHP errors with particular
websites/domains. If you look through the php.ini file, track_errors
allows you to store the last error message in a global variable called
$php_errormsg. It would be possible to add this into your scripts,
although it might not be entirely feasible for you to do so. The only
other thing I can think of, would be to add some kind of call back
function to either PHP or apache. I think it's possible to do so with
both, although I am not entirely sure.

Sorry I can't be of more help.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Domains; 1 Server; 1 PHP Install; Only One Domain Has A Working PHP; WHY?????? BDE Consulting answers 18 November 1st, 2007 08:15 AM
Mssql Iis6 guswebb answers 14 July 28th, 2007 10:21 PM