<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bradym.net &#187; PHP</title>
	<atom:link href="http://bradym.net/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://bradym.net</link>
	<description>Random thoughts of a Code Monkey</description>
	<lastBuildDate>Sun, 11 Oct 2009 22:39:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating iCalendar (ics) files with PHP</title>
		<link>http://bradym.net/php/creating-icalendar-ics-files-with-php</link>
		<comments>http://bradym.net/php/creating-icalendar-ics-files-with-php#comments</comments>
		<pubDate>Sat, 15 Aug 2009 08:00:59 +0000</pubDate>
		<dc:creator>bradym</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[iCalendar]]></category>
		<category><![CDATA[ics]]></category>

		<guid isPermaLink="false">http://bradym.net/php/creating-icalendar-ics-files-with-php</guid>
		<description><![CDATA[This post was originally written several years ago and included my own attempt at building a very simple ical creator in PHP. I&#8217;ve been meaning to update this blog with some better code and information for quite some time. I finally found what I consider to be a very good class for creating iCalendar files [...]]]></description>
			<content:encoded><![CDATA[<p>This post was originally written several years ago and included my own attempt at building a very simple ical creator in PHP. I&#8217;ve been meaning to update this blog with some better code and information for quite some time. I finally found what I consider to be a very good class for creating iCalendar files using PHP: <a href="http://www.kigkonsult.se/iCalcreator/index.php">iCalcreator</a>. Along with creating iCalendar files, iCalcreator can also <a href="http://www.kigkonsult.se/iCalcreator/docs/using.html#parse_merge">parse and merge iCalendar files</a>, and spit out a modified version. There are lots of <a href="http://www.kigkonsult.se/downloads/index.php?#iCalcreator">examples available for download</a> on their site, as well as supporting utilities.</p>
<p>The <a href="http://www.kigkonsult.se/iCalcreator/docs/using.html">iCalcreator documentation</a> is excellent. The examples are easy to follow, and they clearly document how to use their class. Unfortunately, the iCalendar specification is complicated enough that you&#8217;ll still need to read rfc2445 to really take advantage of all of the options available to you. Some good iCalendar reference sites include:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/ICalendar">iCalendar &#8211; Wikipedia</a></li>
<li><a href="http://www.kanzaki.com/docs/ical/">iCalendar Specification Excerpts</a></li>
<li><a href="http://rfc.net/rfc2445.html">Entire iCalendar Specification (rfc2445)</a></li>
</ul>
<p>Since I haven&#8217;t actually built anything using iCalcreator yet (other than some quick test scripts earlier today) I can&#8217;t really answer any questions about its usage. The good news is they have a <a href="http://sourceforge.net/forum/?group_id=174828">forum on sourceforge</a> for questions. I&#8217;d love to hear about your experiences using iCalcreator, so feel free to leave your comments below.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fbradym.net%2Fphp%2Fcreating-icalendar-ics-files-with-php';
  addthis_title  = 'Creating+iCalendar+%28ics%29+files+with+PHP';
  addthis_pub    = 'mydarb';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://bradym.net/php/creating-icalendar-ics-files-with-php/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Opera friendly PHP redirect</title>
		<link>http://bradym.net/php/opera-friendly-php-redirect</link>
		<comments>http://bradym.net/php/opera-friendly-php-redirect#comments</comments>
		<pubDate>Thu, 03 Jan 2008 03:23:09 +0000</pubDate>
		<dc:creator>bradym</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Opera]]></category>

		<guid isPermaLink="false">http://bradym.net/php/opera-friendly-php-redirect</guid>
		<description><![CDATA[Opera can&#8217;t handle a redirect to a URL that ends in an anchor. I found this out trying to use the PHP header() function.
From what little I was able to find using Google on the topic, it appears that Opera won&#8217;t redirect a user to the page they just came from, it must be a [...]]]></description>
			<content:encoded><![CDATA[<p>Opera can&#8217;t handle a redirect to a URL that ends in an anchor. I found this out trying to use the PHP header() function.</p>
<p>From what little I was able to find using Google on the topic, it appears that Opera won&#8217;t redirect a user to the page they just came from, it must be a different URI.</p>
<p>To get around this in php, here&#8217;s what I did:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Location: file.php?value1=12&amp;amp;value2=43&amp;amp;r='</span><span style="color: #339933;">.</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'#anchorName'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Having the random number from rand() makes the page unique, and the redirect works as expected.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fbradym.net%2Fphp%2Fopera-friendly-php-redirect';
  addthis_title  = 'Opera+friendly+PHP+redirect';
  addthis_pub    = 'mydarb';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://bradym.net/php/opera-friendly-php-redirect/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
