Hi,

Everyone knows that you can't send headers twice or after you output  
- as in:

<?php
echo "something";
header("Location: page.php");
?>

But in actual fact you can - depending on the server setup.
I discovered that on one of our win2003 IIS servers it's perfectly  
fine to send a header() whenever you like in PHP or ASP  
[response.redirect()]

This is a bit of a pain because if you make a mistake & do a header()  
after some html the server does not complain, & then when you come to  
upload your website you find the whole thing is knackered because the  
other server does not allow it.

Anyway, my question, which is a little off topic i'm afraid, is what  
standards are there relating to this?
Can anyone point me to a site that can explain why headers should not  
be sent twice, or indeed if it is OK to, if the server set up allows it?
Does the w3c comment on this?

Thanks all,
Riquez


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to