Exemplo n.º 1
0
Arquivo: req.php Projeto: shiyake/PHP
function writeNew($longitude, $latitude)
{
    $existed = readNew();
    $count = $existed['count'] + 1;
    //print_r("count=".$count);
    return file_put_contents("newest.wn", "longitude={$longitude};latitude={$latitude};count={$count}\r\n");
}
Exemplo n.º 2
0
    }
    // 未読数制限
    if ($unum_limit > 0 && $aThread->unum >= $unum_limit) {
        unset($aThread);
        continue;
    }
    if ($aThread->isonline) {
        $online_num++;
    }
    // 生存数set
    P2Util::printInfoHtml();
    $matomeCache->concat(ob_get_flush());
    flush();
    ob_start();
    if ($aThread->readnum < 1 || $aThread->unum) {
        readNew($aThread);
        $matomeCache->addReadThread($aThread);
    } elseif ($aThread->diedat) {
        echo $aThread->getdat_error_msg_ht;
        echo "<hr>\n";
    }
    $matomeCache->concat(ob_get_flush());
    flush();
    ob_start();
    // リストに追加 ========================================
    // $aThreadList->addThread($aThread);
    $aThreadList->num++;
    unset($aThread);
}
//$aThread = new ThreadRead();
//======================================================================