addHeaderLine("Referer", "www.bonhuset.com"); $be->addHeaderLine("Accept-Encoding", "x-compress; x-zip"); $be->addHeaderLine("Content-Type", "application/x-www-form-urlencoded"); //******************************************************************************************** //$thisMonth = date("m"); //$year = date("Y"); //$upper_month = $thisMonth+3; //$debugg=""; //$urlstring=""; //for ($month = $thisMonth; $month <$upper_month; $month++) //{ // if ($month > 12){ // $month=1; // $year = $year +1; // $upper_month = $upper_month -12; // } // $debugg = $debugg.$year; // $debugg = $debugg.$month; //$be->addPostData("year", $year); //$be->addPostData("month", $month); //$be->addPostData("menu1", "index.php?month=3"); $url="http://www.pingst-ovik.se"; $file = $be->fopen($url); $response = $be->getLastResponseHeaders(); $urlstring=get_urlstring($url,$file,"

","copyright",''); echo $urlstring; //$debugg = $debugg.$urlstring; //echo $urlstring."

"; /*$company=1; if (strlen($urlstring)>80){ if(insert_data_in_db($url,$town=1,$category=1,$company,$urlstring, $year, $month, 0, 0, $link, $search_type=1,date("Y-m-d"),$sortorder=1)){ delete_data_in_db($company,$link); } } else { send_mail("jerker.bergman@gmail.com","Urlstring error","URLsring to short p� ".$url); }*/ //} fclose($file); ?>