addHeaderLine("Referer", "www.ovikefs.se"); $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=""; //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("__EVENTTARGET","DagensLunch1\$lnkBtnWeek"); //$be->addPostData("__EVENTARGUMENT", ""); //$be->addPostData("menu1", "index.php?month=3"); $url="http://www.ilromanos.se/Default.aspx"; $file = $be->fopen($url); $response = $be->getLastResponseHeaders(); $urlstring=get_urlstring($url,$file,"","",''); $debugg = $debugg.$urlstring; //echo $urlstring."

"; //$url="http://www.efsovik.se/"; //$company=2; //if (strlen($urlstring)>50){ // 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=2)){ // delete_data_in_db($company,$link); // } //} //else { // send_mail("jerker.bergman@gmail.com","Urlstring error","URLsring to short på ".$url); //} //} fclose($file); echo $debugg; //$today = date("Ymd"); //$logfile = "cronjobs/".$today."-efs-logg.htm"; //$file = fopen($logfile,"a"); //fputs($file,date("r",time())."
".$debugg); //fclose($file); ?>