<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Rene's Blog</title>
	
	<link>http://www.renepot.com</link>
	<description>All about me</description>
	<lastBuildDate>Sun, 30 Aug 2009 20:10:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/renepot" /><feedburner:info uri="renepot" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Some photos, some websites and an announcement</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/aSU3j38M-1w/</link>
		<comments>http://www.renepot.com/2009/08/some-photos-some-websites-and-an-announcement/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 20:10:02 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=63</guid>
		<description><![CDATA[As posted before, I bought a camera to shoot some photos. Well, that has paid off.
Currently, my photos are used on two different websites.
2 of my photos are here: http://www.luckyfonziii.com/page/photos/14-troubadour-festival-leeuwarden-2382009
This is a troubadour from the netherlands. On a festival I made some pictures, and he added them to his website.
5 of my photos (including the [...]]]></description>
			<content:encoded><![CDATA[<p>As posted before, I bought a camera to shoot some photos. Well, that has paid off.</p>
<p>Currently, my photos are used on two different websites.</p>
<p>2 of my photos are here: <a href="http://www.luckyfonziii.com/page/photos/14-troubadour-festival-leeuwarden-2382009">http://www.luckyfonziii.com/page/photos/14-troubadour-festival-leeuwarden-2382009</a><br />
This is a troubadour from the netherlands. On a festival I made some pictures, and he added them to his website.<br />
5 of my photos (including the 2 from above) are used here: <a href="http://3voor12.vpro.nl/artikelen/artikel/42399723">http://3voor12.vpro.nl/artikelen/artikel/42399723</a><br />
It is dutch, but it&#8217;s about the same festival.</p>
<p>More photos, check my flickr: <a href="www.flickr.com/photos/topener">www.flickr.com/photos/topener</a></p>
<p><strong>Announcement</strong></p>
<p>I haven&#8217;t been posting much recently, this because I am quite busy lately. It&#8217;ll come back <img src='http://www.renepot.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/renepot/~4/aSU3j38M-1w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/08/some-photos-some-websites-and-an-announcement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/08/some-photos-some-websites-and-an-announcement/</feedburner:origLink></item>
		<item>
		<title>The maximum length of an Url</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/Y0PLfMafKTw/</link>
		<comments>http://www.renepot.com/2009/07/max-url-length/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 19:45:27 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[General / Other]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[2006]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[length]]></category>
		<category><![CDATA[maximum]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=51</guid>
		<description><![CDATA[Ever wondered what the maximum length of an URL is? I looked them up for you, and posted them on my blog.]]></description>
			<content:encoded><![CDATA[<p>Recently I was wondering how long an url can be at max. So I searched the Internet, and this is what i found:</p>
<table style="height: 112px;" border="1" cellspacing="0" cellpadding="0" width="465">
<tbody>
<tr style="text-align: center;">
<td><strong>Internet Explorer</strong></td>
<td><strong>FireFox</strong></td>
<td><strong>Safari</strong></td>
<td><strong>Opera</strong></td>
<td><strong>Apache</strong></td>
</tr>
<tr>
<td>2048</td>
<td>65536 visibleAt least 100.000</td>
<td>At least 80.000</td>
<td>At least 190.000</td>
<td>Approx 4000</td>
</tr>
</tbody>
</table>
<p>I found this on the Internet, and i thought I&#8217;d sum it up for you. Might be useful. The article i found this on is from 2006, but is still something you can rely on. Most results are &#8220;at least&#8221; or &#8220;approx&#8221; because the person who wrote the article stopped testing.</p>
<p>But, still don&#8217;t know why browsers support more  than 100.000. Because the servers never support that much. On the link below are some explanations and other results.</p>
<p>Source: <a href="http://www.boutell.com/newfaq/misc/urllength.html" target="_blank">http://www.boutell.com/newfaq/misc/urllength.html</a></p>
<img src="http://feeds.feedburner.com/~r/renepot/~4/Y0PLfMafKTw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/07/max-url-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/07/max-url-length/</feedburner:origLink></item>
		<item>
		<title>Simple error Handling at PHP</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/0pZ9Mt6OVFw/</link>
		<comments>http://www.renepot.com/2009/07/error-handling-at-php/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 19:19:31 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[handling]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=48</guid>
		<description><![CDATA[A simple way to do something with the errors instead of displaying them. ]]></description>
			<content:encoded><![CDATA[<p>I am working a lot with PHP, and also developing on a live CMS. Because there are already people using the system i don&#8217;t want errors to appear.</p>
<p>So, i tried to find a way to fix that. And, i found it. Ofcourse I did, because else this post wouldn&#8217;t excist.</p>
<p>This is the row that sets a new default error handler function:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$old_error_handler</span> <span style="color: #339933;">=</span> <span style="color: #990000;">set_error_handler</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;myErrorHandler&quot;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>And this is the function:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> myErrorHandler<span style="color: #009900;">&#40;</span><span style="color: #000088;">$errno</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errstr</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errfile</span><span style="color: #339933;">,</span> <span style="color: #000088;">$errline</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
   <span style="color: #666666; font-style: italic;">// Do something with the vars you get from this function.</span>
  <span style="color: #666666; font-style: italic;">// $errno = Error number. Every type of error has an number ;)</span>
  <span style="color: #666666; font-style: italic;">// $errstr = text to explain the error. The one you always see by default</span>
  <span style="color: #666666; font-style: italic;">// $errfile = File the error occurred in</span>
  <span style="color: #666666; font-style: italic;">// $errline = Line number in $errfile the error occurred at.</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Check for more information <a href="http://www.php.net/set_error_handler" target="_blank">www.php.net/set_error_handler</a></p>
<img src="http://feeds.feedburner.com/~r/renepot/~4/0pZ9Mt6OVFw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/07/error-handling-at-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/07/error-handling-at-php/</feedburner:origLink></item>
		<item>
		<title>Sony A350 with tamron 18-200mm lens</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/QGCwbUnAuS8/</link>
		<comments>http://www.renepot.com/2009/06/sony-a350-with-tamron/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 20:29:25 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[About Myself]]></category>
		<category><![CDATA[18-200mm]]></category>
		<category><![CDATA[350]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[sony a350]]></category>
		<category><![CDATA[tamron]]></category>
		<category><![CDATA[tamron 18-200mm]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=37</guid>
		<description><![CDATA[my new camera. A sony A350 with Tamron 18-200mm lens]]></description>
			<content:encoded><![CDATA[<p>Just recently I bought myself a new digital camera. This time a Sony A350 with a Tamron 18-200mm lens.</p>
<p>Now its time to figure out how everything works, but I&#8217;ll get there <img src='http://www.renepot.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  If i got some nice pictures, I&#8217;ll show you. Right now, this is my camera.</p>

<a href='http://www.renepot.com/2009/06/sony-a350-with-tamron/a14_18-200mm/' title='a14_18-200mm'><img width="150" height="150" src="http://www.renepot.com/wp-content/uploads/2009/06/a14_18-200mm-150x150.gif" class="attachment-thumbnail" alt="" title="a14_18-200mm" /></a>
<a href='http://www.renepot.com/2009/06/sony-a350-with-tamron/sony/' title='sony'><img width="150" height="150" src="http://www.renepot.com/wp-content/uploads/2009/06/sony-150x150.jpg" class="attachment-thumbnail" alt="" title="sony" /></a>

<img src="http://feeds.feedburner.com/~r/renepot/~4/QGCwbUnAuS8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/06/sony-a350-with-tamron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/06/sony-a350-with-tamron/</feedburner:origLink></item>
		<item>
		<title>Array Sort by key reversed</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/IVfTKcKPpao/</link>
		<comments>http://www.renepot.com/2009/06/array-sort-by-key-reversed/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 14:18:25 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[arrays]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[krsort]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=32</guid>
		<description><![CDATA[A method of sorting an array reversed.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.renepot.com/2009/05/array-sort-by-key/">Recently </a> I was talking about ksort() to sort array, but i forgot to mention the reversed method. <a href="http://www.renepot.com/2009/05/array-sort-by-key/">(link)</a></p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #990000;">krsort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ray</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>This function sorts an array reversed. So Z &#8211; A instead of A &#8211; Z.</p>
<img src="http://feeds.feedburner.com/~r/renepot/~4/IVfTKcKPpao" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/06/array-sort-by-key-reversed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/06/array-sort-by-key-reversed/</feedburner:origLink></item>
		<item>
		<title>Array Sort by key</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/vQDnUKp77pU/</link>
		<comments>http://www.renepot.com/2009/05/array-sort-by-key/#comments</comments>
		<pubDate>Sun, 31 May 2009 20:53:46 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[arrays]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[ksort]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=29</guid>
		<description><![CDATA[An easy way to sort an array in php by key. Simple solution!]]></description>
			<content:encoded><![CDATA[<p>A problem I encountered recently was, after a short search on the internet, easy to fix.<br />
I was trying to arrange an array in php by it&#8217;s keys, but I didn&#8217;t know how at first. This is my array</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$ray</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'2'</span> <span style="color: #339933;">=&gt;</span> <span style="">'second'</span><span style="color: #339933;">,</span> <span style="">'1'</span> <span style="color: #339933;">=&gt;</span> <span style="">'first'</span><span style="color: #339933;">,</span> <span style="">'a'</span> <span style="color: #339933;">=&gt;</span> <span style="">'alpha);</span></pre></div></div>

<p>As you noticed the order is 2 &#8211; 1 &#8211; a. But i want to arrange it to 1 &#8211; 2 &#8211; a. The only thing I had to do was this:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #990000;">ksort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ray</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>Thats all you need to do. And it will arrange the array by key.</p>
<img src="http://feeds.feedburner.com/~r/renepot/~4/vQDnUKp77pU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/05/array-sort-by-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/05/array-sort-by-key/</feedburner:origLink></item>
		<item>
		<title>Variable variables in PHP</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/BXB8k_VAGa4/</link>
		<comments>http://www.renepot.com/2009/05/variable-variables/#comments</comments>
		<pubDate>Wed, 20 May 2009 23:13:24 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[arrays]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[$_POST]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[handling arrays]]></category>
		<category><![CDATA[variable]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=25</guid>
		<description><![CDATA[Variable variables in PHP are an easy way to store an array into several other variables]]></description>
			<content:encoded><![CDATA[<p>Something i recently discovered, and already regret I didn&#8217;t knew this before, makes it much more easier to parse $_POST or $_GET variables into ordinary variables so i can use it properly for mysql insertions.</p>
<p>This is what i used to do:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
   <span style="color: #000088;">$var1</span> <span style="color: #339933;">=</span> mysql_real_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'var1'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
   <span style="color: #000088;">$var2</span> <span style="color: #339933;">=</span> mysql_real_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'var2'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
   <span style="color: #000088;">$var3</span> <span style="color: #339933;">=</span> mysql_real_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="">'var3'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Ofcourse we all can see the repeat in this, but i never figured out how to solve that issue.<br />
But ofcourse there is always someone else with a better idea, and I like to share it with you</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$$key</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span>;
  <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>
And thats simply all. It will put all the $_POST array items into a numerous variables.<br />
The double &#8220;$&#8221; does what you expect it to do, it makes a variable out of the content of the variable.</p>
<p>When $a = test, than $$a = test2 will result into $test = test2.<br />
It is that easy!</p>
<img src="http://feeds.feedburner.com/~r/renepot/~4/BXB8k_VAGa4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/05/variable-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/05/variable-variables/</feedburner:origLink></item>
		<item>
		<title>jQuery &amp; Ajax</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/Pt9pNKvm_Co/</link>
		<comments>http://www.renepot.com/2009/05/jquery-ajax/#comments</comments>
		<pubDate>Mon, 18 May 2009 21:16:39 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ajax]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=20</guid>
		<description><![CDATA[Jquery &#038; Ajax, it is that easy]]></description>
			<content:encoded><![CDATA[<p>Some time ago i discovered jQuery. A great and easy tool to do lots of fun stuff with animations.</p>
<p>But, it also makes Ajax much more simpler.</p>
<p>Just check out this documentation: http://docs.jquery.com/Ajax</p>
<img src="http://feeds.feedburner.com/~r/renepot/~4/Pt9pNKvm_Co" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/05/jquery-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/05/jquery-ajax/</feedburner:origLink></item>
		<item>
		<title>Fresh Start</title>
		<link>http://feedproxy.google.com/~r/renepot/~3/Pl-K4ue-5iY/</link>
		<comments>http://www.renepot.com/2009/05/fresh-start/#comments</comments>
		<pubDate>Tue, 05 May 2009 23:40:21 +0000</pubDate>
		<dc:creator>Rene Pot</dc:creator>
				<category><![CDATA[About Myself]]></category>

		<guid isPermaLink="false">http://www.renepot.com/?p=17</guid>
		<description><![CDATA[I already am blogging at phpz.nl but that blog limited me to just PHP.
Because I am working with a lot javascript recently, and wanted to share that as well I decided to make a fresh start, on a new website, with more options for me.
I will keep blogging here, so for both javascript and PHP [...]]]></description>
			<content:encoded><![CDATA[<p>I already am blogging at <a href="http://www.phpz.nl" target="_blank">phpz.nl </a>but that blog limited me to just PHP.</p>
<p>Because I am working with a lot javascript recently, and wanted to share that as well I decided to make a fresh start, on a new website, with more options for me.</p>
<p>I will keep blogging here, so for both javascript<strong> and</strong> PHP this will be the place to be! Thanks for joining.</p>
<img src="http://feeds.feedburner.com/~r/renepot/~4/Pl-K4ue-5iY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.renepot.com/2009/05/fresh-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.renepot.com/2009/05/fresh-start/</feedburner:origLink></item>
	</channel>
</rss>
