|
Posted by Gary L. Burnore on 10/19/07 13:10
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.
--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
===========================================================================
Navigation:
[Reply to this message]
|