//возвращает страницу с подставленными куками
function PrintPage($cookieStr, $url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, 'ослик маздай');
curl_setopt($ch, CURLOPT_COOKIE, $cookieStr);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_REFERER, 'http://antichat.ru/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$pageOut = curl_exec($ch);
curl_close($ch);
return $pageOut;
}
наслаждайтесь.
Сообщение от
chin
php programmer
все там будем
