Connecting Tech Pros Worldwide Help | Site Map

output sent and location header

  #1  
Old July 17th, 2005, 01:53 PM
chotiwallah
Guest
 
Posts: n/a
there has been a thread about this topic a couple of days ago, but
nothing was really solved there

http://groups-beta.google.com/group/...148bd281577091

i just stumbled abou the same thing, so i take up the question again.

i have a page that sends output (via session_start(), the cookie is
there) and calls a location header afterwards. against all
expectations it works.

i put a check in

if(!headers_sent())
{
header("Location: URI);
}

but headers_sent() obviously throws FALSE, so the location header is
sent.

any ideas anyone?

micha
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
location header WORKING after content written...why? pinbot@gmail.com answers 11 July 17th, 2005 01:48 PM
Header AJ answers 3 July 17th, 2005 08:45 AM
header("Location:...") question Stijn Goris answers 2 July 17th, 2005 12:48 AM
Help to pop up a window before using Location to redirect a page Steven answers 3 July 16th, 2005 11:57 PM