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


Groups > comp.lang.php > #17288

Re: Problem validating user and hashed value in db

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.php
Subject Re: Problem validating user and hashed value in db
Date Sat, 14 Jan 2017 02:37:37 +0000
Organization A noiseless patient Spider
Lines 62
Message-ID <87d1fqnz7y.fsf@bsb.me.uk> (permalink)
References <59dee77f-3973-468a-bc21-2cbfd2fe4d7a@googlegroups.com> <o55e2c$mdh$1@jstuckle.eternal-september.org> <o55fvp$89q$1@solani.org> <1637589.atdPhlSkOF@PointedEars.de> <40785270-a157-4582-a129-e5afb0f94714@googlegroups.com> <o58ahb$5t4$1@solani.org> <46bf833a-2b4c-4258-a9bf-b7f7d0ab224a@googlegroups.com> <o58ib6$bu4$1@solani.org> <10375782-d8e1-4c57-bdee-06540f32d866@googlegroups.com> <9f5cff7f-01f5-4625-ba02-c8f28c001684@googlegroups.com> <o58ob1$b18$1@jstuckle.eternal-september.org> <b61144dd-ec9d-457e-8cc4-33e021372547@googlegroups.com> <o58u8v$23u$2@jstuckle.eternal-september.org> <5fc8e4a3-9168-4912-90d2-18fbb7d7b52d@googlegroups.com> <o5as87$mvg$1@jstuckle.eternal-september.org> <a80484a9-09c5-4f9c-a3b7-dba48f629090@googlegroups.com> <o5b4ct$8ea$1@jstuckle.eternal-september.org> <1c031b21-e416-453b-a04c-9630715daddf@googlegroups.com> <o5b88o$6bs$1@solani.org> <93d0a5b6-3435-94fc-44b3-99f0653bd44e@PointedEars.de> <o5bgej$llc$1@jstuckle.eternal-september.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Info mx02.eternal-september.org; posting-host="7c83bf7cfa5ef2718b6651d9ea1f1ab0"; logging-data="27766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/91zPrWTZZgFeUnWSsifqXH0fx0+s307Y="
Cancel-Lock sha1:2mJgop21F1JY9otvpixsOMnfB10= sha1:nO9uqkuju0I71fq3GrdQlcEfqrI=
X-BSB-Auth 1.a028aa1cbef883c20896.20170114023737GMT.87d1fqnz7y.fsf@bsb.me.uk
Xref csiph.com comp.lang.php:17288

Show key headers only | View raw


Jerry Stuckle <jstucklex@attglobal.net> writes:

> On 1/13/2017 3:35 PM, the well-known troll Thomas 'Pointed Head' Lahn wrote:
>> Christoph M. Becker wrote:
>> 
>>> On 13.01.2017 at 19:30, wart2ww wrote:
>>>> On Friday, January 13, 2017 at 9:58:27 AM UTC-8, Jerry Stuckle wrote:
>>>>> The fact you're getting the message indicates you are outputting
>>>>> something before the header call.  You should also have a message
>>>>> indicating what line on which file is generating the output.
>>>>
>>>> I will keep trying. FYI, I did put the php block at the top of the page
>>>> above any html (before the doctype declaration, made sure there were not
>>>> spaces before the php block and even put the entire header code on one
>>>> line with no spaces then with some spaces in the statement. Still no
>>>> success so that what confuses me. I won't bug you any more but I really
>>>> do appreciate your help.
>>>
>>> As Jerry had written, the message you get is something like
>>>
>>>   "Cannot send headers; headers already sent in <filename>, line
>>>    <lineno> in <filename>:<lineno>"
>>>
>>> The last <filename> and <lineno> indicate the place of the header()
>>> call, the first <filename> and <lineno> indicate where the output started.
>> 
>> Another common reason for this problem is that the used source code editor
>> prepends an (if supported, invisible) byte order mark (BOM; usually, for
>> UTF-8 encoded source code).  AFAIK, the BOM can be shown with a hex editor
>> (or equivalent, like “cat -A”), or an unsupporting text editor (rare these
>> days) only.
>> 
>> For example, the first octets of PHP source code with an UTF-8 BOM can look
>> in a hex editor [here: Pascal 'Pixel' Rigaux’ hexedit(1)] as follows:
>> 
>> | 00000000   EF BB BF 3C 3F 70 68 70 …      ...<?php…
>> 
>> An editor that does not support UTF-8 could display “” for the BOM,
>> because those are the characters at the code points 0xEF, 0xBB, and 0xBF in
>> ISO/IEC-8859-1 (“Latin alphabet no. 1” or “Latin-1”) for short, and
>> Windows-1252/CP-1252 (”Western”).
>> 
>> <https://en.wikipedia.org/wiki/ISO/IEC_8859-1#Codepage_layout>
>> 
>> For PHP source code, the source code editor has to be configured so that
>> it does not prepend a BOM, or another editor has to be used for final
>> storage; otherwise it is impossible to avoid the warning and the problem.
>> 
>> <https://en.wikipedia.org/wiki/Byte_order_mark>
>
> Which I mentioned a couple of days ago.  Do you ever post something
> original?

Thomas Lahn and I hardly see eye to eye on anything, but his post
clearly contains original material: an possible explanation of how this
may have come about (the editor); some advice on further debugging the
issue (a hex editor or cat -A); and he clears up a misconception the OP
might have taken from your remark that "you can't use UTF-8 or any other
charset which has a BOM".

-- 
Ben.

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


Thread

Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-10 12:46 -0800
  Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-10 22:39 -0500
    Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-10 19:51 -0800
      Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-10 23:28 -0500
        Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-10 22:32 -0800
          Re: Problem validating user and hashed value in db "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-01-11 12:47 +0100
            Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-11 09:07 -0500
              Re: Problem validating user and hashed value in db "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-01-11 15:37 +0100
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-11 15:40 -0500
                Re: Problem validating user and hashed value in db Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-11 23:18 +0100
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-12 07:32 -0800
                Re: Problem validating user and hashed value in db "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-01-12 17:23 +0100
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-12 10:18 -0800
                Re: Problem validating user and hashed value in db "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-01-12 19:36 +0100
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-12 11:12 -0800
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-12 12:05 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-12 15:20 -0500
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-12 13:51 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-12 17:00 -0500
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-12 13:53 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-12 17:02 -0500
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-13 07:16 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-13 10:39 -0500
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-13 09:06 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-13 12:58 -0500
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-13 10:30 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-13 13:57 -0500
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-13 13:29 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-13 16:57 -0500
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-13 14:23 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-14 13:03 -0500
                Re: Problem validating user and hashed value in db "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-01-13 20:02 +0100
                Re: Problem validating user and hashed value in db Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-13 21:35 +0100
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-13 16:24 -0500
                Re: Problem validating user and hashed value in db Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-01-14 02:37 +0000
                Re: Problem validating user and hashed value in db wart2ww <fcc@bmi.net> - 2017-01-13 19:20 -0800
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-14 12:57 -0500
                Re: Problem validating user and hashed value in db Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-14 19:47 +0100
                Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-14 14:00 -0500
                Re: Problem validating user and hashed value in db Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-13 16:27 +0100
                Re: Problem validating user and hashed value in db "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-01-13 16:39 +0100
          Re: Problem validating user and hashed value in db Jerry Stuckle <jstucklex@attglobal.net> - 2017-01-11 09:22 -0500

csiph-web