Показать сообщение отдельно

  #15  
Старый 30.06.2007, 11:10
hhover
Познающий
Регистрация: 21.05.2007
Сообщений: 61
С нами: 9986942

Репутация: 145
По умолчанию

login.php
PHP код:
<?php
$curl 
curl_init 'http://site.com/login.php' );
curl_setopt $curlCURLOPT_FOLLOWLOCATION);
curl_setopt $curlCURLOPT_POST);
curl_setopt $curlCURLOPT_POSTFIELDS'login=mylogin&pass=mypass' );
curl_setopt $curlCURLOPT_COOKIESESSION);
curl_setopt $curlCURLOPT_COOKIEJAR'cookie.txt' );
curl_setopt $curlCURLOPT_COOKIEFILE'cookie.txt' );
curl_exec $curl );
curl_close $curl );
?>
cron.php
PHP код:
<?php
$curl 
curl_init 'http://site.com/' );
curl_setopt $curlCURLOPT_COOKIESESSION);
curl_setopt $curlCURLOPT_COOKIEJAR'cookie.txt' );
curl_setopt $curlCURLOPT_COOKIEFILE'cookie.txt' );
curl_exec $curl );
curl_close $curl );
?>
chmod cookie.txt 777
 
Ответить с цитированием