Collection program php // Collection program php
Set_time_limit (0 );
// Cookie storage directory
$ Cookie_jar = '/tmp/cookie. tmp ';
/* Function compute ------------------------------------------------------------------------------------------------------------*/
// Simulate the request data Fashion jewelry
Function request ($ url, $ postfields, $ cookie_jar, $ referer ){
$ Ch = curl_init ();
$ Options = array (CURLOPT_URL => $ url,
CURLOPT_HEADER => 0,
CURLOPT_NOBODY => 0,
CURLOPT_PORT => 80,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $ postfields,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FOLLOWLOCATION => 1,
CURLOPT_COOKIEJAR => $ cookie_jar,
CURLOPT_COOKIEFILE => $ cookie_jar,
CURLOPT_REFERER => $ referer
);
Curl_setopt_array ($ ch, $ options );
$ Code = curl_exec ($ ch );
Curl_close ($ ch );
Return $ code;
}
// Obtain The Post list
Function getThreadsList ($ code ){
Preg_match_all ('/