cookie.txt:
Kód:
# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.
.filesonic.com TRUE / FALSE 1320678712 lang en
.filesonic.com TRUE / FALSE 0 role premium
.filesonic.com TRUE / FALSE 0 PHPSESSID 9q9i2b7hd51f19rmev0cukbal1
.filesonic.com TRUE / FALSE 0 isAffiliate 1
.filesonic.com TRUE / FALSE 0 messagingUnread 0
.filesonic.com TRUE / FALSE 0 messagingUnreadLastcheck 1318086713
login.phpKód:
<?php
$ch = curl_init ("http://www.filesonic.com/");
curl_setopt ($ch, CURLOPT_COOKIEFILE, "./cookie.txt");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec ($ch);
echo $output;
?>
preco ma to neprihlasi?