[FX.php List] PHP question

Dale Bengston dbengston at tds.net
Thu Jul 3 17:04:56 MDT 2008


Yes. I do this all the time, and toggle it off when I take a site  
"live." At the top of any php page:

	error_reporting(E_ALL);

Dale

On Jul 3, 2008, at 5:31 PM, Bob Patin wrote:

> 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
>> --
>> Head Honcho
>> CustoMike Solutions
>> Member, FileMaker Business Alliance
>> Member, FileMaker Technical Network
>> FileMaker 7 Certified Developer
>> FileMaker 8 Certified Developer
>> FileMaker 9 Certified Developer
>> 10 Wandoo Crt
>> Wheelers Hill, 3150
>> ph 0414 562 501
>> headhoncho at customikesolutions.com
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> 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