Всегда онлайн

Discussion in 'PHP' started by BAGA4, 8 Mar 2011.

  1. BAGA4

    BAGA4 New Member

    Joined:
    17 Nov 2010
    Messages:
    26
    Likes Received:
    1
    Reputations:
    0
    Как быть всегда онлайн на сайте?Может есть какойто скрипт?
     
  2. banned

    banned Banned

    Joined:
    20 Nov 2006
    Messages:
    3,324
    Likes Received:
    1,193
    Reputations:
    252
    В опере автообновление страницы каждые 10 минут
     
  3. .::BARS::.

    .::BARS::. Elder - Старейшина

    Joined:
    13 Oct 2007
    Messages:
    379
    Likes Received:
    45
    Reputations:
    10
    <?
    file_get_contents('юрл');
    ?>

    запускаем скрипт кроном раз в 5 минут
     
  4. b3

    b3 Banned

    Joined:
    5 Dec 2004
    Messages:
    2,174
    Likes Received:
    1,157
    Reputations:
    202
    Подозреваю что ТСу нужно посещать сайт с куками чтоб аккаунт светился всегда онлайн, cURL в общем.
     
  5. Linkus

    Linkus Member

    Joined:
    20 Dec 2008
    Messages:
    168
    Likes Received:
    15
    Reputations:
    -1
    какой сайт хоть?
     
  6. De-visible

    De-visible [NDC] Network develope c0ders

    Joined:
    6 Jan 2008
    Messages:
    916
    Likes Received:
    550
    Reputations:
    66
    Code:
    [COLOR=White]Login = "User"
    password = 'pass'
    cookie = cookielib.CookieJar()
    opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookie))
    headers = 'headers'
    urllib2.install_opener(opener)
    data = urllib.urlencode({'login':Login,'passw':password})
    request = urllib2.Request('http://url',data,headers)
    while 1:
        urllib2.urlopen(request).read()
        time.sleep(60)[/COLOR]
    or

    Code:
    [COLOR=White]opera --> update page (+1 to Isis)[/COLOR]
     
  7. derk

    derk New Member

    Joined:
    9 Feb 2011
    Messages:
    9
    Likes Received:
    3
    Reputations:
    -8
    http://baklajan.info/files/scripts/vkonlinephp/forcron.txt

    Вот рабочий для контакта, ставь на 8 минут.