• 19-04-2008, 00:15:13
    #10
    <?php
    // 301 Moved Permanently
    header("Location: /foo.php",TRUE,301);
    
    // 302 Found
    header("Location: /foo.php",TRUE,302);
    header("Location: /foo.php");
    
    // 303 See Other
    header("Location: /foo.php",TRUE,303);
    
    // 307 Temporary Redirect
    header("Location: /foo.php",TRUE,307);
    ?>
  • 19-04-2008, 11:06:37
    #11
    Saçma Firefox Kullanıcıyım Ben Mesela Benimle Ne aLıp Veremediğin var (:
  • 19-04-2008, 23:59:22
    #12
    MaviEjder adlı üyeden alıntı: mesajı görüntüle
    php de eğer İe ile girilmişse, a.php ye eğer firefox ile girilmiş ise b.php ye nasıL yapablirm.
    <?php
    $ie_ve_ff_degil = 'c.php'; // internet explorer veya firefox değilse hangi dosyaya gitsin
    
    ob_start();
    if(preg_match('#MSIE#i',$_SERVER['HTTP_USER_AGENT']))
        header('Location:a.php');
    elseif(preg_match('#Firefox#i',$_SERVER['HTTP_USER_AGENT']))
        header('Location:b.php');
    else
        header('Location:'.$ie_ve_ff_degil);
    ob_end_flush();
    ?>

  • 03-03-2009, 19:47:46
    #13
    Sadece İE6 yı nasıl engelleyebilirim, MSIE 6.0 yazdım kod yerine ama İE7 den de girmiyor bu sefer. Sadece 6 yı engellemek istiyorum ben.
  • 03-03-2009, 23:00:04
    #14
    Üyeliği durduruldu
    bunları yapmak sitenizde hit düşüşüne neden olmazmı ?
  • 03-03-2009, 23:07:53
    #15
    <?php
    if(strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox')){
      die('Firefox ile bu siteyi goruntuleyemezsiniz.');
    }
    ?>
    ie için

    <?php
    if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.')){
      die('iexplore 6 ile bu siteyi goruntuleyemezsiniz.');
    }
    ?>
    Justrulz