• 21-08-2006, 13:15:54
    #10
    şu şekilde yaptım,umarım işinize yarar

    <?php
    ob_start();
    extract($HTTP_COOKIE_VARS); 
    if($cerez==1){
    echo"olmazz";
    exit;
    }
    if (!session_is_registered("popup")){ 
    session_register('popup'); 
    $deger=1;
    setcookie("cerez", $deger, time()+15);
    
    ?> 
    <OBJECT id=stb height=0 width=1  
    classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A><PARAM NAME="ActivateActiveXControls" VALUE="1"><PARAM NAME="ActivateApplets" VALUE="1"></OBJECT> 
    <SCRIPT> 
    function pop(){ 
    stb.DOM.Script.setTimeout("window.open('http://www.siteniz.com','_blank',',scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,status=yes,width=750,height=750,directories=yes');"); 
    } 
    setTimeout('pop();',0); 
    </SCRIPT>
    <?php
    
    }
    echo"tamam";
    ?>
    *time()+15 15 sn demek istediğiniz süreyi buradan ayarlayabilirsiniz.
  • 21-08-2006, 13:18:58
    #11
    php nin tercih edilme sebebi kolay bir dil öğrenilmesini kolay anlaşılması ve şu hazır fonksiyonları
  • 21-08-2006, 13:22:37
    #12
    eruseldarine adlı üyeden alıntı: mesajı görüntüle
    bende var database e yazıyor grenleri 1 gunde ilk girişinde a.html ye ondan sonra her girişi b.html ye yapior 20$

    STI adlı üyeden alıntı: mesajı görüntüle
    şu şekilde yaptım,umarım işinize yarar

    <?php
    ob_start();
    extract($HTTP_COOKIE_VARS); 
    if($cerez==1){
    echo"olmazz";
    exit;
    }
    if (!session_is_registered("popup")){ 
    session_register('popup'); 
    $deger=1;
    setcookie("cerez", $deger, time()+15);
    
    ?> 
    <OBJECT id=stb height=0 width=1  
    classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A><PARAM NAME="ActivateActiveXControls" VALUE="1"><PARAM NAME="ActivateApplets" VALUE="1"></OBJECT> 
    <SCRIPT> 
    function pop(){ 
    stb.DOM.Script.setTimeout("window.open('http://www.siteniz.com','_blank',',scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,status=yes,width=750,height=750,directories=yes');"); 
    } 
    setTimeout('pop();',0); 
    </SCRIPT>
    <?php
    
    }
    echo"tamam";
    ?>
    *time()+15 15 sn demek istediğiniz süreyi buradan ayarlayabilirsiniz.

    buda 0$
  • 21-08-2006, 13:26:22
    #13
    <script LANGUAGE="JavaScript">
    <!--
    var expDays = 1;

    var page = "https://www.r10.net";
    var windowprops = "width=600,height=500,location=no,toolbar=yes, menu bar=yes,scrollbars=yes,resizable=yes";

    function GetCookie (name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
    return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
    }
    return null;
    }
    function SetCookie (name, value) {
    var argv = SetCookie.arguments;
    var argc = SetCookie.arguments.length;
    var expires = (argc > 2) ? argv[2] : null;
    var path = (argc > 3) ? argv[3] : null;
    var domain = (argc > 4) ? argv[4] : null;
    var secure = (argc > 5) ? argv[5] : false;
    document.cookie = name + "=" + escape (value) +
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
    ((path == null) ? "" : ("; path=" + path)) +
    ((domain == null) ? "" : ("; domain=" + domain)) +
    ((secure == true) ? "; secure" : "");
    }
    function DeleteCookie (name) {
    var exp = new Date();
    exp.setTime (exp.getTime() - 1);
    var cval = GetCookie (name);
    document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
    }
    var exp = new Date();
    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
    function amt(){
    var count = GetCookie('count')
    if(count == null) {
    SetCookie('count','1')
    return 1
    }
    else {
    var newcount = parseInt(count) + 1;
    DeleteCookie('count')
    SetCookie('count',newcount,exp)
    return count
    }
    }
    function getCookieVal(offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
    endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
    }

    function checkCount() {
    var count = GetCookie('count');
    if (count == null) {
    count=1;
    SetCookie('count', count, exp);

    window.open(page, "", windowprops);

    }
    else {
    count++;
    SetCookie('count', count, exp);
    }
    }
    checkCount();
    // End -->
    </script>
  • 21-08-2006, 13:37:41
    #14
    Böyle bir hata aldım.

    Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at D:\WEB\htdocs\php\pop_up_1.php:1) in D:\WEB\htdocs\php\pop_up_1.php on line 9
    
    Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at D:\WEB\htdocs\php\pop_up_1.php:1) in D:\WEB\htdocs\php\pop_up_1.php on line 9
    
    Warning: Cannot modify header information - headers already sent by (output started at D:\WEB\htdocs\php\pop_up_1.php:1) in D:\WEB\htdocs\php\pop_up_1.php on line 11
    tamam
  • 21-08-2006, 13:42:59
    #15
    MonteCristo adlı üyeden alıntı: mesajı görüntüle
    Böyle bir hata aldım.

    Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at D:\WEB\htdocs\php\pop_up_1.php:1) in D:\WEB\htdocs\php\pop_up_1.php on line 9
    
    Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at D:\WEB\htdocs\php\pop_up_1.php:1) in D:\WEB\htdocs\php\pop_up_1.php on line 9
    
    Warning: Cannot modify header information - headers already sent by (output started at D:\WEB\htdocs\php\pop_up_1.php:1) in D:\WEB\htdocs\php\pop_up_1.php on line 11
    tamam
    benim yazdıgım mı yoksa veganınkindemi?
    benim verdiğimi en üste yazman gerekiyor