Re: headers .vs javascript location.href
| From: | Joe Wollard | Date: | Tue, 20 Sep 2005 05:21:18 +0000 |
| Subject: | Re: headers .vs javascript location.href | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222722@lists.php.net to get a copy of this message | ||
On Sep 19, 2005, at 5:08 PM, Chris Shiflett wrote:
bruce wrote: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.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