IE problem with stripos($_SERVER['REQUEST_URI']

Discussion in 'PHP' started by MyVodaFone, Nov 12, 2010.

  1. #1
    My code below keeps redirecting, it works fine on FF & Chrome, wont work on Safari or IE, anybody know what I'm missing ?

    
    if (stripos($_SERVER['REQUEST_URI'],'/?') !== false)
        {
         // do nothing
        } else {
          header("Location: http://apps.facebook.com/smartytouch/");
           exit;
        }
    
    PHP:
     
    Last edited: Nov 12, 2010
    MyVodaFone, Nov 12, 2010 IP
  2. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #2
    What does $_SERVER['REQUEST_URI'] contain when on IE and Safari ?
     
    ActiveFrost, Nov 12, 2010 IP
  3. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #3
    Cheers for the reply, I started to edit this thread but got side tracked sorry, the problem wasn't related to the code above, but a cookie/sessions issue which I found out later.. my code above ran if no cookie was issued ie: the IE browser wont except 3rd party cookies and this was because facebook iframes etc... I fixed the IE problem but the safari issue is little more complicated...
     
    MyVodaFone, Nov 12, 2010 IP