[UPHPU] @include_once bad?
thebigdog
bigdog at venticon.com
Fri Mar 27 12:34:08 MDT 2009
>> If you don't care the error so the include file is useless
>
> That's not necessarily true. I can think of several situations in
> which a hypothetical programmer (possibly even myself) may want to
> include a file if it's present, but ignore it if it isn't.
I know of a good example here. I have a project where we encode modules as
include files...if they are present we load them up and they provide additional
functionality to the system. By having the files include we provide additional
functionality that the customer has purchased for the particular deployment.
My $0.02 - don't ever suppress error/warning messages. I am a big fan of
try/catch and error handling.
--
thebigdog
More information about the UPHPU
mailing list