Best things in life are free

www.gratisistockholm.nu presents free fun, events, activities, exhibitions & concerts

There is a lot of no cost, free fun in Stockholm happening every day for example exhibitions, concerts, events, cinema / film viewings, theater, museums, markets and much more…
“);
echo(“Free fun happening today, “);
echo date(“Y m d”);
echo (“

“);
//hämtar data från gratisistockholm.se
$curl_data = curl_init(); //curl kan både hämta och skicka data
curl_setopt($curl_data, CURLOPT_URL, “http://www.gratisistockholm.nu/showObjects.aspx?categoriesId=18”);
curl_setopt($curl_data, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($curl_data);
$tmp = explode(‘

‘, $content); //exploderar så vi får ut allt i diven med denna class
$tmp2 = explode(‘
‘, $tmp[1]);
curl_close($curl_data);
//detta block fixar länkarna————————————————————-
$path = ‘http://www.gratisistockholm.nu/’;
$add = (‘‘, ‘ ‘, $t2);
$t4 = preg_replace(‘/^\s+|\n|\r|\s+$/m’, ”, $t3);
echo(“
“. $t4);
?>

Leave a comment

Your email address will not be published. Required fields are marked *