Php header location

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shani Kumar
    New Member
    • Aug 2013
    • 1

    Php header location

    I have a simple php page in which I use

    header("Locatio n: http://www.example.com/");

    to redirect the user to another php page. The php script works on my
    local machine but when I upload it to the web server for hosting the
    redirection does not work. Instead on one server it gives the standard
    header error
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    move the relocation code before the part where you start the output.

    Comment

    Working...