[FX.php List] PHP question

Head Honcho headhoncho at customikesolutions.com
Thu Jul 3 15:50:14 MDT 2008


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




More information about the FX.php_List mailing list