Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #10456

Re: Counter reset or not? UPDATE

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Counter reset or not? UPDATE
Date 2013-08-08 20:44 -0400
Organization A noiseless patient Spider
Message-ID <ku1e26$5a9$3@dont-email.me> (permalink)
References <ktulqb$rmk$1@speranza.aioe.org> <ku0qfr$da5$1@speranza.aioe.org> <ku1625$4v6$1@dont-email.me> <52042283$0$6554$9b4e6d93@newsspool4.arcor-online.net>

Show all headers | View raw


On 8/8/2013 6:58 PM, Christoph Michael Becker wrote:
> Scott Johnson wrote:
>
>> One of the biggest overlooked mistakes is having a blank space prior to
>> the delimiter.   This is sometimes caused by the text editor.
>
> If one is working with UTF-8 encoded PHP files, there may be even an
> "invisible" BOM before the opening PHP tag; so one should always save
> those files without a BOM.
>
> However, if a BOM or any whitespace in front of the opening PHP tag
> causes any trouble is mostly depending on the PHP ini setting
> output_buffering[1].  I usually set this to "Off" in the development
> environment, so I can catch these "headers already sent" errors early.
>
> [1]
> <http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering>
>

In general, buffering should be set to off in production systems.  With 
proper design of your code, you don't need output buffering, and it just 
adds one more layer of processing to the scripts.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Counter reset or not? Twayne <nobody@spamcop.net> - 2013-08-07 19:38 -0400
  Re: Counter reset or not? Richard Yates <richard@yatesguitar.com> - 2013-08-07 20:30 -0700
    Re: Counter reset or not? Twayne <nobody@spamcop.net> - 2013-08-08 12:15 -0400
      Re: Counter reset or not? Richard Yates <richard@yatesguitar.com> - 2013-08-10 05:49 -0700
    Re: Counter reset or not? Twayne <nobody@spamcop.net> - 2013-08-08 15:13 -0400
  Re: Counter reset or not? Richard Damon <Richard@Damon-Family.org> - 2013-08-08 00:06 -0400
    Re: Counter reset or not? Twayne <nobody@spamcop.net> - 2013-08-08 12:19 -0400
    Re: Counter reset or not? Twayne <nobody@spamcop.net> - 2013-08-08 15:14 -0400
  Re: Counter reset or not? UPDATE Twayne <nobody@spamcop.net> - 2013-08-08 15:10 -0400
    Re: Counter reset or not? UPDATE Scott Johnson <noonehome@chalupasworld.com> - 2013-08-08 15:28 -0700
      Re: Counter reset or not? UPDATE Christoph Michael Becker <cmbecker69@arcor.de> - 2013-08-09 00:58 +0200
        Re: Counter reset or not? UPDATE Jerry Stuckle <jstucklex@attglobal.net> - 2013-08-08 20:44 -0400
        Re: Counter reset or not? UPDATE Twayne <nobody@spamcop.net> - 2013-08-09 14:07 -0400
      Re: Counter reset or not? UPDATE Twayne <nobody@spamcop.net> - 2013-08-09 14:05 -0400

csiph-web