|
Posted by Jerry Stuckle on 10/19/07 16:00
Gary L. Burnore wrote:
> On Fri, 19 Oct 2007 08:51:21 -0400, Jerry Stuckle
> <jstucklex@attglobal.net> wrote:
>
>> Kye wrote:
>>>> That typically means you've added some code for debugging problems.
>>>>
>>>> There are settings in your php.ini file which should be different between
>>>> development and production systems (i.e. display_errors), and some debug
>>>> functions. And there are external debuggers.
>>>>
>>>> But there isn't a "debug mode" in the way you're thinking.
>>> Would this include the classic things like mysql_error like in the below?
>>>
>>> $result = mysql_query($query) or die ('Error in query: $query. '
>>> .mysql_error());
>>>
>> Yes, I would never use die() or display database error messages in
>> production code.
>
> Agreed. And while he likely does these things too, I was referring to
> his comment about printing variables in C. Leaving preprocsessor
> warnings enabled in production.
>
Ah, thanks for the clarification.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|