Headers seem to easy!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    Headers seem to easy!

    when running this code:

    <html>
    <?php
    /* This will give an error. Note the output
    * above, which is before the header() call */
    header('Locatio n: http://www.example.com/');
    ?>

    It runs perfectly on my server! Why isnt is giving the expected error???
  • B. Johannessen

    #2
    Re: Headers seem to easy!

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    David wrote:[color=blue]
    > <html>
    > <?php
    > /* This will give an error. Note the output
    > * above, which is before the header() call */
    > header('Locatio n: http://www.example.com/');
    > ?>
    > It runs perfectly on my server! Why isnt is giving the expected error???[/color]

    output buffering? http://php.net/ref.outcontrol


    Bob

    - --
    | B. Johannessen <bob@db.org> +47 97 15 20 09 - http://db.org/
    | Mail & Spam - News, Drafts & Standards - http://db.org/blog/
    | On The Origin Of Spam; Spam Statistics - http://db.org/spam/
    - --
    -----BEGIN PGP SIGNATURE-----

    iD8DBQFANpQZooi sUyMOFlgRAvJBAJ 0cUFGLs74Q5M5BO 8o5bYQH1imcNwCf Wsbj
    8kLqiO43Bd6uQR2 7cxfzbBI=
    =dFKV
    -----END PGP SIGNATURE-----

    Comment

    Working...