Re: [PHP4BETA] FW: [PHP3] Funky error in php4
| From: | Zeev Suraski | Date: | Fri, 04 Feb 2000 19:18:17 +0000 |
| Subject: | Re: [PHP4BETA] FW: [PHP3] Funky error in php4 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9828@lists.php.net to get a copy of this message | ||
Please upgrade to the latest CVS; It should then be trivial to track down
which part of your script generates output first.
Zeev
On Fri, 4 Feb 2000, Boget, Chris wrote:
>
> > That's really strange. I include a lot of files before
> > sending headers, and, as long as the whole file is in
> > the <? ... ?> tags, and I do not have any echos or
> > mysql errors potentialy being spit out, I am fine.
> > Show me the script, and I might give you a hint (if I can) -
> > an extra pair of eyes help at times...:)
>
> I've determined that the problem occurs *after* I've submitted
> a form.
> For each form on my site, I have the 'action=' set to PHP_SELF
> so I can validate all the data entered in each field. Once everything
> checks out, I use the header( "Location: " ); to push to the next
> page. I don't print or display anything prior to that header call.
> I put the header() code on the first line of the file. If I come into
> that file normally, the header(); function triggers and pushes
> me to the appropriate page. I comment that line out to get into
> the page initially, put it back in then submit the form and that
> is when I get the error. If I take that line out again, I get no error.
> So it seems to happen only after my form has been submitted.
> That explains why the header(); function works sometimes and
> not others - it works when there is not form submission but doesn't
> when there is...
> This is getting wierder by the minute...
>
> Chris
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/