setReferer (string $referer) : object

参数

@param  string  $referer    来源地址

含义

用于设定请求来源地址

举栗

$referer = "http://www.phpcreeper.com";

//直接调用
Task::getInstance()->setReferer($referer);

//通过phpcreeper实例调用
$this->worker->getTaskMan()->setReferer($referer);

results matching ""

    No results matching ""