A simple coding help needed from people who know coding.

Discussion in 'PHP' started by sumone, Feb 15, 2011.

  1. #1
    I would like to create a simple script that would read a % # from a specific link every time the webpage is opened for example if the number is 11 or above than the webpage would automatically be redirected to a different domain or a subdomain.

    Is this anyhow possible to do? I would really appreciate any help or any guide for this.

    Thanks alot guys.
     
    sumone, Feb 15, 2011 IP
  2. Alex Roxon

    Alex Roxon Active Member

    Messages:
    424
    Likes Received:
    11
    Best Answers:
    7
    Trophy Points:
    80
    #2
    Those two values with be in the URL? If so, you can use $_SERVER['REQUEST_URI'] to find out what URI the current individual is on. With a little bit of parsing, you should be able to get the value needed.
     
    Alex Roxon, Feb 16, 2011 IP