$cookie_file = tempnam('./temp','cookie');
$login_url = "http://xingdong365.com/action/index.php?action=login";
$post_fields = "cktime=3600&user=*****&pw=******&action=login";

$ch = curl_init($login_url);//设置你需要抓取的URL
curl_setopt($ch, CURLOPT_HEAD,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//设置cURL 参数,要求结果保存到字符串中还是输出到屏幕上
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
$data = curl_exec($ch);//运行cURL,请求网页
curl_close($ch);

$url ="http://xingdong365.com/action/sort.php";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEAD,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file);

$contents = curl_exec($ch);

preg_match('/<option value="1">(.*)<\/option>/',$contents,$arr);
echo $arr[1];

curl_close($ch);