[FX.php List] PHP question

Dale Bengston dbengston at tds.net
Thu Jul 3 17:03:38 MDT 2008


Wrong line numbers are usually because of a missing curly bracket or  
semicolon.

Dale

On Jul 3, 2008, at 5:45 PM, Glenn Singleton wrote:

> With error reporting, the line number reported never seems to be  
> even close.
> Anyone know how that works ? Does it count comment lines for example ?
>
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
> Sent: Friday, 4 July 2008 8:31 AM
> To: FX.php Discussion List
> Subject: Re: [FX.php List] PHP question
>
> I don't use a development server though; I can turn error_reporting  
> on for
> any page, can't I?
>
> BP
>
>
> On Jul 3, 2008, at 4:50 PM, Head Honcho wrote:
>
>> Hi Bob,
>>
>> On 04/07/2008, at 5:46 AM, Bob Patin wrote:
>>
>>> I'm using PHP 5, and am wondering if there is a syntax error-
>>> reporting setting that I can change so that my silly syntax errors
>>> could be reported. Just now, for example, I left off a semicolon,  
>>> and
>>> the page reload just showed nothingness.
>>>
>>> Is there a way for me to get some feedback for these sorts of  
>>> things?
>>> I seem to recall that I used to get them in PHP4, but I could be
>>> fogbound...
>>
>> I use PHP's error checking in the php.ini.
>>
>> These are my settings:
>>
>> ; Examples:
>> ;
>> ;   - Show all errors, except for notices and coding standards
>> warnings
>> ;
>> error_reporting = E_ALL & ~E_NOTICE
>> ;
>> ;   - Show all errors, except for notices
>> ;
>> ;error_reporting = E_ALL & ~E_NOTICE | E_STRICT ;
>> ;   - Show only errors
>> ;
>> ;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|
>> E_CORE_ERROR
>> ;
>> ;   - Show all errors, except coding standards warnings
>> ;
>> ;error_reporting  =  E_ALL
>>
>> This throws syntax errors such as those you're trying to trap.  It
>> will tell you the error, and the line it is on.
>>
>> Hope this helps.
>>
>> Regards
>>
>> Michael Ward
>> --
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list