计算来自用户的cURL请求

时间:2015-01-03 17:16:17

标签: php curl

我有一个网站向其他地方发送curl请求,它还有一个登录系统。有没有记录从一个用户帐户发送多少卷曲请求?

由于

1 个答案:

答案 0 :(得分:0)

创建计数函数并在每次用户执行cURL请求时执行:

<?php

function count() {

    $currentAmount = "whatever (integer value)"; // Get from database (e.g. from the field "curl_requests") or text file

    $newAmount = $currentAmount + 1;

    set_new_amount($username, $newAmount); // Update to database or text file

}

?>