当前位置: 首页>>代码示例>>PHP>>正文


PHP poll函数代码示例

本文整理汇总了PHP中poll函数的典型用法代码示例。如果您正苦于以下问题:PHP poll函数的具体用法?PHP poll怎么用?PHP poll使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了poll函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: latest

<?php 
}
?>

<!-- 커뮤니티 최신글 시작 { -->
<section id="sidx_lat">
    <h2>커뮤니티 최신글</h2>
    <?php 
echo latest('theme/shop_basic', 'notice', 5, 30);
?>
    <?php 
echo latest('theme/shop_basic', 'free', 5, 25);
?>
    <?php 
echo latest('theme/shop_basic', 'qa', 5, 20);
?>
</section>
<!-- } 커뮤니티 최신글 끝 -->

<?php 
echo poll('theme/shop_basic');
// 설문조사
?>

<?php 
echo visit('theme/shop_basic');
// 접속자
?>

<?php 
include_once G5_THEME_SHOP_PATH . '/shop.tail.php';
开发者ID:davis00,项目名称:youngcart,代码行数:31,代码来源:index.php

示例2: poll

<?php

include 'signalling.php';
$room_id = $_POST['room_id'];
$client_id = $_POST['client_id'];
$last_msg_timestamp = $_POST['last_msg_timestamp'];
$new_msgs = poll($room_id, $client_id, $type, $last_msg_timestamp);
开发者ID:enewe101,项目名称:brim,代码行数:7,代码来源:poll.php

示例3: poll

<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
?>
    </div>
</div>

<hr>

<?php 
echo poll('basic');
// 설문조사
?>

<hr>

<div id="ft">
    <?php 
echo popular('basic');
// 인기검색어
?>
    <?php 
echo visit('basic');
// 방문자수
?>
    <div id="ft_copy">
        <div id="ft_company">
            <a href="<?php 
开发者ID:kimyongyeon,项目名称:myproject,代码行数:31,代码来源:tail.php

示例4: poll

use Metaregistrar\EPP\eppException;
use Metaregistrar\EPP\eppPollRequest;
use Metaregistrar\EPP\eppResponse;
/*
 * This script polls for new messages in the EPP system
 * The messages tell you if a domain name was transferred away to another provider
 * Or it tells you that your credit balance is low
 * Please use the pollack function to acknowledge a message and remove it from the queue
 */
try {
    echo "Polling for messages\n";
    // Please enter your own settings file here under before using this example
    if ($conn = eppConnection::create('')) {
        // Connect and login to the EPP server
        if ($conn->login()) {
            $messageid = poll($conn);
            if ($messageid) {
                pollack($conn, $messageid);
            }
            $conn->logout();
        }
    }
} catch (eppException $e) {
    echo "ERROR: " . $e->getMessage() . "\n\n";
}
/**
 * @param $conn Metaregistrar\EPP\eppConnection
 * @return null|string
 */
function poll($conn)
{
开发者ID:metaregistrar,项目名称:php-epp-client,代码行数:31,代码来源:poll.php

示例5: obj_to_array

$group_name_list = obj_to_array(json_decode(get_group_name_list_mask($cookie['login']['vfwebqq'])));
// 获取管理员id
// $my_uin = get_friend_uin($friend_list);
//http://s.web2.qq.com/api/get_friend_uin2?tuin={$tuin}&verifysession=&type=1&code=&vfwebqq={$vfwebqq}c&t=136610165502
print_r($cookie);
//var_dump($my_uin);
// print_r($friend_list);
print_r($group_name_list);
// 回复数据
$reply = unserialize(read_file("parse.ini"));
$face = array("9" => array("哭啥?有啥不开心的?说出来让我们开心一下"), "5" => array("不哭,乖", "哭啥?有啥不开心的?说出来让我们开心一下"), "13" => array("笑得这么开心?", "在笑哪个妹子呢?"), "58" => array("老板,来根大麻", "红塔山多少钱一包?"), "105" => array("鄙视俺的人那么多,你排队去", "不许插队,吼吼!~~~"));
// =======================================================
// |新开进程进行监控
// =======================================================
while (TRUE) {
    $d = poll($cookie['login']['psessionid'], $cookie['clientid']);
    $msg = obj_to_array(json_decode($d));
    echo $d;
    if ($msg['retcode'] === 0) {
        foreach ($msg['result'] as $v) {
            // 			print_r($v);
            // 针对个人
            if ($v['poll_type'] == "message") {
                $data = trim($v['value']['content'][1]);
                // 处理换行
                $data = implode("\\\\n", explode("\n", $data));
                // 普通回复
                if (array_key_exists($data, $reply)) {
                    if (is_array($reply[$data]) && ($count = count($reply[$data]))) {
                        send_buddy_msg($v['value']['from_uin'], $reply[$data][mt_rand(0, $count - 1)], $cookie['login']['psessionid'], $cookie['clientid']);
                    } else {
开发者ID:lapuda,项目名称:webqq-robot,代码行数:31,代码来源:index.php

示例6: latest

<?php 
}
?>

<!-- 커뮤니티 최신글 시작 { -->
<section id="sidx_lat">
    <h2>커뮤니티 최신글</h2>
    <?php 
echo latest('shop_basic', 'notice', 5, 30);
?>
    <?php 
echo latest('shop_basic', 'free', 5, 25);
?>
    <?php 
echo latest('shop_basic', 'qa', 5, 20);
?>
</section>
<!-- } 커뮤니티 최신글 끝 -->

<?php 
echo poll('shop_basic');
// 설문조사
?>

<?php 
echo visit('shop_basic');
// 접속자
?>

<?php 
include_once G5_SHOP_PATH . '/shop.tail.php';
开发者ID:ned3y2k,项目名称:youngcart5,代码行数:31,代码来源:index.php

示例7: poll

if (!defined('_GNUBOARD_')) {
    exit;
}
// 개별 페이지 접근 불가
if (G5_COMMUNITY_USE === false) {
    include_once G5_THEME_MSHOP_PATH . '/shop.head.php';
    return;
}
?>
    </div>
</div>

<hr>

<?php 
echo poll('theme/basic');
// 설문조사
?>

<hr>

<div id="ft">
    <?php 
echo popular('theme/basic');
// 인기검색어
?>
    <?php 
echo visit('theme/basic');
// 방문자수
?>
    <div id="ft_copy">
开发者ID:kojaehyuk,项目名称:kjhtest,代码行数:31,代码来源:tail.php

示例8: ob_start

?>

    <?php 
ob_start();
?>
    <div class="block"><?php 
echo mw_latest_comment(5);
?>
</div>
    <?php 
$side[] = ob_get_clean();
?>

    <?php 
//shuffle($side);
foreach ($side as $row) {
    echo $row;
}
?>

    <?php 
$poll = poll("theme/mw5");
if ($poll) {
    echo "<div class=\"block\">{$poll}</div>";
}
?>

</div><!--sidebar-->


开发者ID:l2zeo,项目名称:miwit-pack5,代码行数:28,代码来源:sidebar.php

示例9: array

        $keys = array("time", "location", "domain", "ref", "swidth", "sheight", "cookies", "ip", "agent", "historylen");
        $aux = array();
        foreach ($keys as $k) {
            $aux[$k] = $row[$k];
        }
        $aux['country'] = geoip_country_name_by_addr($gi, $aux['ip']);
        $aux['type'] = 'pageview';
        # At some point LLOOGG supported the ability to display user clicks
        # adsense ADs. Now the javascript we inject no longer support this
        # but the support inside LLOOGG itself remains.
        if ($row['event_id'] == LOG_EVENT_ADCLICK) {
            $aux['type'] = 'adclick';
        }
        $t[] = $aux;
        if ($row['id'] > $maxid) {
            $maxid = $row['id'];
        }
    }
    geoip_close($gi);
    $t[] = $maxid + 1;
    if ($proto >= 2) {
        $t[] = logTodayVisitors();
        $t[] = logTodayPageviews();
    }
    $json = new Services_JSON();
    $output = $json->encode($t);
    echo $output;
}
header("Content-Type: text/html; charset=UTF-8");
poll();
开发者ID:shaugier,项目名称:lloogg,代码行数:30,代码来源:poll.php

示例10: test13

function test13($conn)
{
    $polldata = poll($conn);
    /* @var $polldata Metaregistrar\EPP\eppPollResponse */
    while ($polldata->getMessageCount() > 0) {
        pollack($conn, $polldata->getMessageId());
        $polldata = poll($conn);
    }
}
开发者ID:pkaz,项目名称:php-epp-client,代码行数:9,代码来源:nutests.php

示例11: if

                ?>
                    <li class="gnb_2dli"><a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>" class="gnb_2da"><?php echo $row2['me_name'] ?></a></li>
                <?php
                }

                if($k > 0)
                    echo '</ul>'.PHP_EOL;
                ?>
            </li>
            <?php
            }

            if ($i == 0) {  ?>
                <li id="gnb_empty">메뉴 준비 중입니다.<?php if ($is_admin) { ?> <br><a href="<?php echo G5_ADMIN_URL; ?>/menu_list.php">관리자모드 &gt; 환경설정 &gt; 메뉴설정</a>에서 설정하실 수 있습니다.<?php } ?></li>
            <?php } ?>
        </ul>
    </nav>
</div>
<!-- } 상단 끝 -->

<hr>

<!-- 콘텐츠 시작 { -->
<div id="wrapper">
    <div id="aside">
        <?php echo outlogin('basic'); // 외부 로그인  ?>
        <?php echo poll('basic'); // 설문조사  ?>
    </div>
    <div id="container">
        <?php if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) { ?><div id="container_title"><?php echo $g5['title'] ?></div><?php } ?>
开发者ID:kojaehyuk,项目名称:kjhtest,代码行数:30,代码来源:head.php

示例12: outlogin

echo $table_width;
?>
' cellpadding=0 cellspacing=0 border=0>
<tr>
    <td width=43></td>
    <!-- 왼쪽 메뉴 -->
    <td width=220 valign=top>
        <?php 
echo outlogin("basic");
// 외부 로그인
?>

        <div style='height:10px;'></div>

        <?php 
echo poll("basic");
// 설문조사
?>

        <div style='height:10px;'></div>

        <?php 
echo visit("basic");
// 방문자수
?>

        <div style='height:10px;'></div>

        <?php 
echo connect();
// 현재 접속자수
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:head.php


注:本文中的poll函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。