
02.10.2008, 19:39
|
|
Участник форума
Регистрация: 23.05.2008
Сообщений: 121
С нами:
9457097
Репутация:
133
|
|
PHP код:
............................................................................
function sd_gt($get_url,$desp)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $get_url);
curl_setopt($ch,CURLOPT_COOKIEFILE,"./htdocs/1.txt");
curl_setopt($ch, CURLOPT_HEADER,0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,30);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
curl_setopt($ch, CURLOPT_FILE,$desp);
return $data = curl_exec($ch);
}
$postfix = 2;
$get_url="site.com/direct"
$filename = "base".$postfix;
$desp = fopen ($filename,"a+")
sd_gt($get_url,$desp);
fclose($desp);
............................................................................
Последний раз редактировалось MaSTeR GэN; 02.10.2008 в 19:42..
|
|
|