PHP redirection code ? Anyone?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spamofon
    Confirmed User
    • Jun 2003
    • 2999

    #1

    PHP redirection code ? Anyone?

    anyone can paste it?
  • StuartD
    Sofa King Band
    • Jul 2002
    • 29903

    #2
    header(location: http://www.domain.com);

    gotta use it before anything is outputed to the screen though, including html tags.
    This is me on facebook
    This is me on twitter

    Comment

    • spamofon
      Confirmed User
      • Jun 2003
      • 2999

      #3
      thanks

      Comment

      • swedguy
        Confirmed User
        • Jan 2002
        • 7981

        #4
        Don't forget to add an exit(); after the header() otherwise it will still exe<b></b>cute the rest of the script.

        header("Location: domain.com");
        exit;


        EDIT: Pretty gay that "exec<b></b>ute" is a censored word.

        Comment

        Working...