|
Posted by Phil on 09/26/19 11:37
In article <yO6zf.2645$wl.2590@text.news.blueyonder.co.uk>, d says...
>
>"magilla" <jim.richardson@jax.org> wrote in message
>news:1137506263.350278.111170@g47g2000cwa.googlegroups.com...
>> I'm a old timer programmer (assembler, fortran, pascal, C) and now
>> converting from PERL to PHP. In PERL I always use the "use strict" to
>> force warning messages of undeclared variables. I haven't been able to
>> find anything similar in PHP, is there such an option? When you type
>> as bad as I do, having the PHP interpretor/compiler find misspelled
>> variable names expedites the debugging process.
>>
>> Magilla...
>>
>
>If you turn your error reporting on:
>
>http://uk.php.net/error_reporting
>
>It will indeed give you helpful messages like:
>
>Notice: Undefined variable: somethin in /blah/woo/waah.php
>
>:)
>
>
Thanks for the tip d. I've been spoiled with Perl's "use strict" also and it's
nice to have some alternatives other than the error_log() function.
Phil
--
Newsguy Bandwidth Blowout 01-25-2006
http://newsguy.com/nolimits.htm
Navigation:
[Reply to this message]
|