Reset apache global variable from PHP

Discussion in 'PHP' started by PHP dev, Oct 21, 2008.

  1. #1
    Hi anyone know is there anyway to reset the apache global variable from php?

    I am getting the apache variable $_SERVER['SERVER_PORT'] in php (value 443). But I want to reset the value to 80 and create another request.

    Is it possible?
     
    PHP dev, Oct 21, 2008 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    did you find the server port in the ini?

    didnt find it under http.conf.. how did you alter this?
     
    bartolay13, Oct 21, 2008 IP
  3. PHP dev

    PHP dev Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The rewrite is based on some database parameters and hence I can't do it in httpd.conf
     
    PHP dev, Oct 24, 2008 IP
  4. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #4
    Going from https to http your probably well enough just sending a Location: header pointing to the current url without the S on http.
     
    joebert, Oct 24, 2008 IP