Reply to Re: [PHP] headers .vs javascript location.href

Your name:

Reply:


Posted by Joe Wollard on 09/20/05 08:21

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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация