From 1fc91a274fb08763c0680e1c13289c8b3f7fc0c0 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 29 Sep 2010 20:36:04 +0300 Subject: [PATCH] Updated readme to amplify content-type --- README.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 22be645..b8799e1 100644 --- a/README.markdown +++ b/README.markdown @@ -11,7 +11,7 @@ Usage ----- To get, for example the awesome Alas-show's broadcast times you - header('Content-Type: text/html; charset=utf-8'); + header('Content-Type: text/calendar; charset=utf-8'); date_default_timezone_set('Europe/Helsinki'); require_once("simple_html_dom.php"); @@ -20,4 +20,5 @@ To get, for example the awesome Alas-show's broadcast times you $basso_alas = new BassoFeed('alas'); echo $basso_alas->get_ical(); -The "new BassoFeed(_showname_)" comes from the url, in Alas' case it's http://www.basso.fi/radio/*alas* \ No newline at end of file +The "new BassoFeed(_showname_)" comes from the url, in Alas' case it's http://www.basso.fi/radio/*alas* +The *Content-Type: text/calendar* -part is really important, use it! \ No newline at end of file