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("year", $year); // $be->addPostData("month", $month); //$be->addPostData("menu1", "index.php?month=3"); //$url="http://www.postnummerservice.se/"; //$file = $be->fopen("http://www.postnummerservice.se/adressoekning/?street=tingshusgatan+18&postalcode=895+40&locality=Mellansel&county_code=&submit=S%C3%B6k&external=0&order_by=street&order=DESC"); //$response = $be->getLastResponseHeaders(); //$urlstring=get_urlstring($url,$file,"","",''); //$url="http://www.postnummerservice.se/adressoekning/?street=tingshusgatan+18&postalcode=895+40&locality=Mellansel&county_code=&submit=S%C3%B6k&external=0&order_by=street&order=DESC"; $urlstring = file_get_contents($url, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); // $debugg = $debugg.$urlstring; echo $urlstring."

"; // $url="http://www.efsovik.se/"; //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); ?>