ID:               21391
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Assigned
 Bug Type:         Documentation problem
 Operating System: n/a
 PHP Version:      4.3.0
-Assigned To:      
+Assigned To:      tularis
 New Comment:

I agree that the example is a little bit faulty, but let me explain
what is ment there IMHO:

You should not send any output before the header() calls, blanc lines
before <?php also count as output, and thus break your script.

I will change it in the docs though


Previous Comments:
------------------------------------------------------------------------

[2003-01-03 08:17:14] [EMAIL PROTECTED]

The example on http://php.net/header:

| <?php header ("Content-type: audio/x-pn-realaudio"); ?>
| // Broken, note the blank line above

Is bogus, because whitespace before and after examples is stripped off,
so the example should be modified to have a different error case
presented.

Ie:

| <html>
| <?php header ("Location: http://www.example.com/";); ?>
| // Broken, note the script output above

I cannot do this myself now...

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=21391&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to