[Xitami] localhost problems..

Thomas J. Hruska xitami@lists.xitami.org
Fri, 17 Aug 2001 18:57:17 -0500


At 06:46 PM 8/17/01 -0400, Kartic Krishnamurthy writeth:
>Hi,
>
>I joined the list a few minutes ago and I don't know the entire background
>of your problem.  However, from the PHP script you've shown, it seems that
>you are outputting HTTP headers rather late in your script.
>
>If you want to output HTTP headers, they *must* be output before any other
>kind of output is sent to the browser, including HTML tags and specifically

Not necessarily true.  If you use ob_start, you can output headers anywhere
(just be sure to use ob_end_flush at the end of the script to output the
rest of the data).

>HTML <head> tag.  Your script should actually read:
><?php
>header("Location:http://.../");
>?>
><HTML>
>...
></HTML>


           Thomas J. Hruska -- shinelight@crosswinds.net
Shining Light Productions -- "Meeting the needs of fellow programmers"
                  http://www.shininglightpro.com/