Re: R: [Phplib-users] OOHforms floods error_log
Brought to you by:
nhruby,
richardarcher
From: Marko K. <Mar...@mc...> - 2002-09-16 15:22:45
|
Thanks Gaetano, that was the right hint for me! :) > True. IMHO a very good thing: train developers to write clean code! ;) > Unfortunately will break or give a lot of warnings w. old libraries written carelessly. Yeah, that's true. Did you notice such errors also with the template.inc? I have quite a few entries like: [Mon Sep 16 16:54:38 2002] [error] PHP Notice: Undefined index: rows in /usr/local/lib/php/template.inc on line 211 [Mon Sep 16 16:54:38 2002] [error] PHP Notice: Undefined offset: 0 in /usr/local/lib/php/template.inc on line 111 where 'rows' is a real block name, but '0' is something strange for me, since I never defined such a block... Looks like a quirck inside template.inc??? > Use function error_reporting(). You could put it at the top of local.inc... Well, that's the right thing to do for me. The script where I use oohforms.inc got this command as the first line! ;) Now it's much nicer! Unfortunately notices caused by my own script are now hidden as well. But okay... better than before if you know what you are doing. Thanks again! Regards, Marko |