Header in PHP safe mode

Discussion in 'PHP' started by fex, Apr 9, 2009.

  1. #1
    Hello,

    I need to work in PHP safe mode but I'm having issues with Header('Location: url');

    Is this not allowed in safe mode ?? If it is, is there a work around?
     
    fex, Apr 9, 2009 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    SHould be allowed, you got anything except <?php before header() ? even spaces etc
     
    matthewrobertbell, Apr 9, 2009 IP
  3. fex

    fex Peon

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, the header() is inside an if statement. Also, I used the short open tag '<?' makes any difference in safe mode ?
     
    fex, Apr 10, 2009 IP
  4. fex

    fex Peon

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I did not manage to get header() working. I though found this on the internet, which works but with some delay (redirection during page is built op):

    echo"<script>window.location.href = 'url.php';</script>";
    Code (markup):
    Any other suggestions are still welcome..
     
    fex, Apr 13, 2009 IP