Online_php
<h2>获取在线人数</h2>
<p><img src="https://img.shields.io/badge/php-html-blue.svg" alt="" /></p>
<h3>简介</h3>
<p>获取当前在线人数,默认为统计Referer页面人数</p>
<h3>接口</h3>
<p><a href="https://api.menhood.wang/online">Online</a></p>
<h3>示例代码</h3>
<pre><code class="language-html"><div id="online" style="color:red"></div>
<script src="https://api.menhood.wang/online/index.php?url=ddns.menhood.wang&info=on&time=600">
</script>
<script>
document.getElementById('online').innerHTML=c_online;
</script></code></pre>
<h3>参数</h3>
<table>
<thead>
<tr>
<th>参数</th>
<th>默认值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td>无</td>
<td>如果进行全站统计需要此参数,请自行填写不易重复的字符串</td>
</tr>
<tr>
<td>info</td>
<td>无</td>
<td>显示url返回值,用于对比参数是否正确</td>
</tr>
<tr>
<td>time</td>
<td>600</td>
<td>统计周期,默认600s,最低60s</td>
</tr>
</tbody>
</table>