[FX.php List] PHP question
Anders Monsen
andersm at alamark.com
Thu Jul 3 15:58:27 MDT 2008
Michael,
I have in some php pages tried this as well, instead of modifying the
php.ini -
ini_set('error_reporting', 'E_ALL & ~E_NOTICE');
Are there any disadvantages to this method?
Thanks,
Anders
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
>
>
More information about the FX.php_List
mailing list