Re: headers .vs javascript location.href

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sep 19, 2005, at 5:08 PM, Chris Shiflett wrote:

bruce wrote:

i'd already asked/explained the error. to reiterate, the error i'm
getting is the error that's generated when you try to use the php
'header' function, and it throws a warning/error regarding 'headers
already being sent...'


If you're absolutely certain that your script produces no output prior to the point where you call header(), then you might want to check to see whether an error is being generated - with display_errors enabled, these are included in the output stream.

Also, just copy/paste your exact error here, and also include the lines indicated in the message (and a few lines before/after). I bet someone on this list can spot the problem.

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



This is just a guess here bruce, but do you have any whitespace/line breaks before the PHP code starts? If so then you are generating output before you even get to the code. If you are using a config file of any kind you'll also need to make sure it has no whitespace/ line breaks before or after the code blocks.

Again: just a guess.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux