Re: [PHP] Friday morning brain farts....



On Fri, 2007-08-10 at 11:40 -0400, Daniel Brown wrote:
On 8/10/07, Stut <stuttle@xxxxxxxxx> wrote:
If PHP thinks something might be wrong it will tell you. Why on earth
would you want to ignore it? You think you're smarter than PHP? Really?

Okay, Stut, let's not make Friday the official "Flame Dan Brown"
holiday this week. I vote that it should be later in the year.

However, it should also be noted that my development is never done
on a production server attached to the Internet, for one; and on my
development machine, E_NOTICE is always enabled. I just fail to see
the benefit in alerting visitors to the site that there may have been
something overlooked at some point.

Why would it alert visitors? You don't have display errors set to on for
a production server do you? *EEEEEEEEEK*. Send it to a log file. The
reason it's good to enable notices on a production server is because
your visitors are like a horde of testers, they'll probably hit every
nook and cranny of your code that you might have missed during testing.

Cheers,
Rob.
--
............................................................
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
............................................................
.



Relevant Pages

  • Could not load file or assembly System.Web.Extensions
    ... I've downloaded the AJAX Extension and the CTP ... December package and installed on BOTH my development machine and the ... production server: On the development machine everything is on drive ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [PHP] Friday morning brain farts....
    ... on a production server attached to the Internet, ... You don't have display errors set to on ... Send it to a log file. ... reason it's good to enable notices on a production server is because ...
    (php.general)
  • Re: A simple (dumb) Rookie question
    ... Fix your error reporting. ... On a development machine it must be set to ... Of course on the production server errors should not be shown, ... I always write to a logfile (on my Linux box it's ...
    (comp.lang.php)
  • Re: A question on debugging
    ... But it clearly has nothing to do with the custom errors tag as I am catching all exceptions from the Application_OnError event and emailing them to myself. ... On my development machine I get the line number in the stack trace, but not on the production server. ...
    (microsoft.public.dotnet.general)
  • Membership stuff acts wierd on production server
    ... My site is utilizing asp.net membership. ... development machine. ... I copied the entire directory to the production server. ... On my local dev machine it spits out all the roles ...
    (microsoft.public.dotnet.framework.aspnet)