Re: Headers Already Sent - How To Overcome????
| From: | MikeA | Date: | Fri, 05 Nov 2004 03:06:22 +0000 |
| Subject: | Re: Headers Already Sent - How To Overcome???? | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24886@lists.php.net to get a copy of this message | ||
Thanks for the answer to my problem.
I tried this and it caused other problems. Seems like the only way to get
from one place to another is with the header(Location: ) command. I was
hoping there was something else.
So I am now kind of rewriting this guys application so it works properly.
Again, thanks for the response.
Mike
"Sudeep" <sudeep_zamudra@yahoo.com> wrote in message
news:20041104065211.79082.qmail@web53305.mail.yahoo.com...
> Hi,
>
> Add this line at the top of the page:
>
> <?php ob_start(); ?>
>
> Your problem will be solved.
>
> ...SuDeEp...
>
> MikeA <mavila@mich.com> wrote:
> I am trying to do the following
>
> header ("Location: wlserver/index.php?userKey=$userKey&show=$userKey");
>
> but I keep getting
>
> Warning: Cannot modify header information - headers already sent by ...
>
> The code on the header line above is not executing so I am assuming the
> previous headers being sent is causing this command to not execute. Part
of
> the problem is that I am modifying software written by someone else to fit
> my needs. I do not want to make a lot of alterations because I don't want
> to pull my hair out when the next release shows up.
>
> Is there a command or someway to get around this problem without hacking
out
> all of the other header sending code?
>
> I appreciate any help.
>
> Thank you.
>
> Mike
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Check out the new Yahoo! Front Page. www.yahoo.com/a