preg_match('/(?<='.preg_quote($siteyear_start,'/').').*(?='.preg_quote($siteyear_end,'/').')/sU',$ress,$siteyear);
unction cuwhileurl() {
$url = 'http://www.free-lance.ru/users/XRoman/info/';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
curl_setopt($ch, CURLOPT_POST, 1);
$ress = curl_exec($ch);
curl_close($ch);
$this->ress = mb_convert_case($ress, MB_CASE_LOWER, "utf-8");
$this->parser();
}
function parser() {
$ress = $this->ress;
$firstname_start = mb_convert_case('<a href="http://www.free-lance.ru/users/*" class="frlnameH">', MB_CASE_LOWER, "utf-8");
$firstname_end = '</a>';
$nickname_start = '<a href="http://www.free-lance.ru/users/';
$nickname_end = '" class="frlnameH">';
$ress = curl_exec($ch);
curl_close($ch);
-$this->ress = mb_convert_case($ress, MB_CASE_LOWER, "utf-8");
+$this->ress = mb_convert_case(iconv('cp1251','utf-8',$ress), MB_CASE_LOWER, "utf-8");
$this->parser();
}
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.