Connecting Tech Pros Worldwide Help | Site Map

output sent and location header

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:53 PM
chotiwallah
Guest
 
Posts: n/a
Default output sent and location header

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.