<?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>Progblog</title>
	<atom:link href="http://tzeezy.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://tzeezy.com/wordpress</link>
	<description></description>
	<lastBuildDate>Tue, 22 Mar 2011 20:57:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Python dates and stuff</title>
		<link>http://tzeezy.com/wordpress/?p=278</link>
		<comments>http://tzeezy.com/wordpress/?p=278#comments</comments>
		<pubDate>Tue, 22 Mar 2011 20:12:33 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://tzeezy.com/wordpress/?p=278</guid>
		<description><![CDATA[All the python date functions and types are in the datetime module. So the first thing we&#8217;ll need in our python program is: import datetime // import the whole module from datetime import datetime // import the datetime type from the datetime module What kind of date objects can we work with? The datetime module [...]]]></description>
			<content:encoded><![CDATA[<p>All the python date functions and types are in the <code>datetime</code> module. So the first thing we&#8217;ll need
in our python program is:</p>

<pre><code>import datetime                 // import the whole module
from datetime import datetime   // import the datetime type from the datetime module
</code></pre>

<h3>What kind of date objects can we work with?</h3>

<p>The <code>datetime</code> module contains some useful types:</p>

<ul>
<li>datetime &#8211; for manipulating dates with times included.</li>
<li>date &#8211; for manipulating dates without times.</li>
<li>timedelta &#8211; for perform operations such as adding and subtracting days from dates.</li>
<li>time &#8211; for manipulating times without dates included.</li>
<li>tzinfo &#8211; for working with timezones</li>
</ul>

<h3>Turn a string into a date</h3>

<p>How do we create a python date from a string &#8211; perhaps a date we&#8217;ve serialized to disk somehow?
Pretty easy&#8230; all we need to know is the format the date is stored in. So if our date is stored
in day-month-year format, we can use the <a href="http://docs.python.org/library/datetime.html;strftime-strptime-behavior">datetime format</a> <code>'%d-%m-%Y'</code>. Then we can use the
<code>strptime</code> function to create a <code>datetime</code> from a <code>string</code>.</p>

<pre><code>datestring = '02-03-2011'
format = '%d-%m-%Y'

date = datetime.strptime(datestring, format).date()
print date
</code></pre>

<p>We need to call <code>date()</code> on the created date in order to get just the date portion of the datetime
we created with <code>strptime</code>. If we want to keep the time information, we don&#8217;t need to do this.</p>

<h3>Turn a date into a string</h3>

<p>In order to display a date in a nice readable format, we can use the <code>strftime</code> function:</p>

<pre><code>output_format = '%A, %B %d %Y'
print datetime.strftime(date, output_format)
</code></pre>

<p>or we could use <code>%c</code> as the format and get the date outputted in the current locale&#8217;s format.</p>

<h3>Find out what week of the year a date is in</h3>

<p>Sometimes, we need to work with the week number that a particular date falls in. We can get 
a date&#8217;s week number with the <code>isocalendar</code> function. It returns a 3-tuple and the 2nd element
is the week number, so we can get the week number with:</p>

<pre><code>print date.isocalendar()[1]
</code></pre>

<h3>Add a few days to a date</h3>

<p>We can&#8217;t add an <code>int</code> to a <code>datetime</code>, but we <strong>can</strong> add a <code>timedelta</code> to a <code>datetime</code>! So, to 
add a day to our date:</p>

<pre><code>date = date + timedelta(1)
print date
</code></pre>

<p>That&#8217;s it for now&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://tzeezy.com/wordpress/?feed=rss2&#038;p=278</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Markdown for wordpress plugin</title>
		<link>http://tzeezy.com/wordpress/?p=266</link>
		<comments>http://tzeezy.com/wordpress/?p=266#comments</comments>
		<pubDate>Fri, 11 Mar 2011 10:09:43 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[markdown]]></category>

		<guid isPermaLink="false">http://tzeezy.com/wordpress/?p=266</guid>
		<description><![CDATA[Markdown is pretty cool&#8230; There&#8217;s a plugin for wordpress called &#8216;Markdown for WordPress and bbPress&#8217; (search for it in your Plugins panel) which allows you to write your posts in the syntax. Installing this plugin also seems to solve the extra line breaks problem as well.]]></description>
			<content:encoded><![CDATA[<p><a href="http://daringfireball.net/projects/markdown/">Markdown</a> is pretty cool&#8230; There&#8217;s a plugin for 
wordpress called &#8216;Markdown for WordPress and bbPress&#8217; (search for it in your Plugins panel) which
allows you to write your posts in the syntax.</p>

<p>Installing this plugin also seems to solve the extra line breaks problem as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://tzeezy.com/wordpress/?feed=rss2&#038;p=266</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing and posting blogs with Notepad++</title>
		<link>http://tzeezy.com/wordpress/?p=244</link>
		<comments>http://tzeezy.com/wordpress/?p=244#comments</comments>
		<pubDate>Thu, 10 Mar 2011 22:49:43 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[notepad++]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://tzeezy.com/wordpress/?p=244</guid>
		<description><![CDATA[In the previous post, I had smashed together a script for notepad++ to allow me to post straight to my wordpress blog from there&#8230; I&#8217;ve tidied things up a little and can also edit existing blogs. The best online help I found was at joysofprogramming.com. Let&#8217;s start with the guts of it all &#8211; we [...]]]></description>
			<content:encoded><![CDATA[<p>In the previous post, I had smashed together a script for notepad++ to allow me to post straight
to my wordpress blog from there&#8230; I&#8217;ve tidied things up a little and can also edit existing blogs. 
The best online help I found was at <a href="http://joysofprogramming.com/wordpress-xmlrpc-metaweblog-newpost/">joysofprogramming.com</a>.</p>

<p>Let&#8217;s start with the guts of it all &#8211; we can send an xmlrpc to our wordpress blog by using 
<code>curl</code> in <code>php</code>:</p>

<pre><code>function get_response($context) 
{
    global $url;
    $curlHandle = curl_init();
    curl_setopt($curlHandle, CURLOPT_URL, $url."/xmlrpc.php");
    curl_setopt($curlHandle, CURLOPT_HEADER, false);
    curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array("Content-Type: text/xml"));
    curl_setopt($curlHandle, CURLOPT_POSTFIELDS, $context);
    $response = curl_exec($curlHandle);
    return $response;
}
</code></pre>

<p>This function takes a single variable, sets up curl to send a request to <code>xmlrpc.php</code> 
and eventually sends the request. In the meantime, we set various curl options&#8230; don&#8217;t bother 
including the header in our response, transfer the response instead of simply outputting it, 
content type header for our request and the post data of our request.</p>

<p>The <code>context</code> variable we send in is actually an array containing the details for our 
post. So how do we create a post?</p>

<pre><code>function create($meta, $publish) 
{
    global $username, $password, $url;

    $params = array(0, $username, $password, $meta, $publish);
    $request = xmlrpc_encode_request("metaWeblog.newPost", $params);
    $xmlresponse = get_response($url."/xmlrpc.php", $request);
    $response = xmlrpc_decode($xmlresponse);
    return "\n# postid:$response";
}
</code></pre>

<p>Here&#8217;s a function that calls our already defined <code>get_response</code> with an array of 
objects. <code>$meta</code> is the data for our post &#8211; title, tags, categories for example and the 
<code>$publish</code> variable tells wordpress whether or not we want to publish the post. We also 
return a string with the response we receive and some text.</p>

<p>How about updating an existing post&#8230; its almost the same:</p>

<pre><code>function update($postid, $meta, $publish)
{
    global $url, $username, $password;

    $params = array($postid, $username, $password, $meta, $publish);
    $request = xmlrpc_encode_request("metaWeblog.editPost", $params);
    $xmlresponse = get_response($request);
    $response = xmlrpc_decode($xmlresponse);
}
</code></pre>

<p>When we want to update a post, we need its postid (which will have been returned when we created 
the post)</p>

<p>Now&#8230; we need to set up our <code>$postid</code>, <code>$meta</code> and <code>$publish</code> 
somehow. All that is going to go into the file we&#8217;re writing our blog entry to in notepad++. We&#8217;re 
almost there:</p>

<pre><code>function blog($filename)
{
    list($meta, $publish, $postid) = process($filename);

    if ($postid == '')
    {
        $id = create($meta, $publish);
        $file = fopen($filename, 'a');
        fwrite($file, $id);
        fclose($file);
    }
    else
    {
        update($postid, $meta, $publish);
    }
}
</code></pre>

<p>This will create or update a post. If we create a post, we also write an extra line back to the 
file with the <code>postid</code> returned from the <code>create</code> function. First thing it 
does though is call another function which processes a file:</p>

<pre><code>function process($filename)
{
    $lines = file($filename);
    $meta = array("description" =&gt; "");
    $publish = false;
    $postid = '';
    foreach ($lines as $line)
    {
        if (strpos($line, '#') === 0)
        {
            $kv = trim(substr($line,1));
            list($key, $value) = split(':', $kv);
            $key = trim($key);
            $value = trim($value);
            if ($key == 'categories' || $key == 'mt_keywords')
            {
                $meta[$key] = split(',', $value);
            }
            else if ($key == 'publish')
            {
                $publish = (bool)$value;
            }
            else if ($key == 'postid')
            {
                $postid = $value;
            }
            else
            {
                $meta[$key] = $value;
            }
        }
        else
        {
            $meta["description"] = $meta["description"] . $line;
        }
    }

    return array($meta, $publish, $postid);
}
</code></pre>

<p>This function parses the file for lines starting with <code>#</code>, sets some variables 
and passes them back for us to work with.</p>

<p>Take a look at the file I&#8217;m using to write this post:</p>

<pre><code> # title:                Writing and posting blogs with Notepad++
 # categories:           Blogging, PHP
 # mt_keywords:          notepad++, php, xmlrpc
 # wp_slug:              
 # mt_allow_comments:    1
 # mt_allow_pings:       1
 # post_type:            post
 # publish:              0

&lt;p&gt;In the previous post, I had smashed together a script for notepad++ to allow me to post straight
to my wordpress blog from there... I've tidied things up a little and can also edit existing blogs. 
&lt;/p&gt;
</code></pre>

<p>I think you get the gist&#8230; Add the finishing touches by putting all these functions in a php 
file:</p>

<pre><code>$url = 'http://myblog.com/wordpress';
$username = 'username';
$password = 'password';
$filename = $argv[1];

blog($filename);
...
</code></pre>

<p>And finally adding a NppExec script to notepad++:</p>

<pre><code>php "above php file.php" "$(FULL_CURRENT_PATH)" 
npp_open "$(FULL_CURRENT_PATH)"
</code></pre>

<p>Sep up a quick keystroke to call the script and now you can create, edit and post blogs in 
notepad++. Sweet.</p>
]]></content:encoded>
			<wfw:commentRss>http://tzeezy.com/wordpress/?feed=rss2&#038;p=244</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Post to your WordPress blog with Notepad++</title>
		<link>http://tzeezy.com/wordpress/?p=110</link>
		<comments>http://tzeezy.com/wordpress/?p=110#comments</comments>
		<pubDate>Wed, 09 Mar 2011 00:25:17 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[notepad++]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://tzeezy.com/wordpress/?p=110</guid>
		<description><![CDATA[See Writing and posting blogs with Notepad++ for an updated version of this script! Now, I&#8217;m fed up with the online WordPress post editor and I use Notepad++ all the time. How about just whacking together some html for my blog posts in my fave editor and posting it to the blog at the stroke [...]]]></description>
			<content:encoded><![CDATA[<p><strong>See <a href='http://tzeezy.com/wordpress/?p=244'>Writing and posting blogs with Notepad++</a> for an updated version of this script!</strong></p>

<p>Now, I&#8217;m fed up with the online WordPress post editor and I use Notepad++ all the time. How about just whacking together some html for my blog posts in my fave editor and posting it to the blog at the stroke of a few shortcut keys. I found a php function in various places around the web that allows remote posting and I started messing about with it &#8211; this is what I came up with:</p>

<ol>
    <li>Already have a wordpress blog up and running somewhere!</li>
    <li>Enable remote posting by logging into your blog as &#8216;admin&#8217;. Navigate to the dashboard / settings / writing and check the box beside XML-RPC in the Remote Posting section.
    <li><a href='http://notepad-plus-plus.org'>Notepad++</a> with the NppExec plugin. Install Notepad++ and then use the Plugin Manager to install the plugin.</li>
    <li>You must have <a href='http://php.net'>php</a> installed on your computer.</li>
    <li>You must enable xml-rpc and curl in your php.ini</li>
    <li>Make sure your php executable is on your path&#8230; Mine was inside my WAMP install.</li>
    <li>Save this function somewhere on your computer (call it <code>blog.php</code> maybe): Make sure to change the $url, $username and $password variables to your values! Also, you&#8217;ll need to add the <code>xmlrpc.php</code> to your url&#8230;
        <pre lang='php'>
<?php
    $url = 'my url'; //eg: 'http://myblog.com/wordpress/xmlrpc.php';
    $username = 'my username';
    $password = 'my password';
    $lines = file($argv[1]);
    $title = trim($lines[0]);
    $category = trim($lines[1]);
    $tags = trim($lines[2]);
    $content = '';
    for ($line = 3; $line < count($lines); $line++)
    {
        $content = $content . ' ' . trim($lines[$line]);
    }
    echo "Sending entry '$title' in category '$category' with tags '$tags' to '$url'";
    
    blog($title, $content, $url, $username, $password, $category, $tags);
    
    function blog($title,$body,$rpcurl,$username,$password,$category,$keywords='',$encoding='UTF-8') 
    {
        $title = htmlentities($title,ENT_NOQUOTES,$encoding);
        $keywords = htmlentities($keywords,ENT_NOQUOTES,$encoding);

        $content = array(
            'title'=>$title,
            'description'=>$body,
            'mt_allow_comments'=>1,  // 1 to allow comments
            'mt_allow_pings'=>1,  // 1 to allow trackbacks
            'post_type'=>'post',
            'mt_keywords'=>$keywords,
            'categories'=>array($category)
        );
        $params = array(0,$username,$password,$content,true);
        $request = xmlrpc_encode_request('metaWeblog.newPost',$params);
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
        curl_setopt($ch, CURLOPT_URL, $rpcurl);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 1);
        $results = curl_exec($ch);
        curl_close($ch);
        return $results;
    }
?>
        </pre>
    </li>
    <li>Write a nice new blog entry in Notepad++. The first line of this file should be the title you want on your blog, the second line should be the category you want the post to appear in and the third line should be a list of comma-separated tags you want associated with your post. Anything else is considered to be the content of your post.</li>
    <li>Select the menu option Plugins / NppExec / Execute.</li>
    <li>Enter <code>php "path to where I saved blog.php" $(FULL_CURRENT_PATH)</code> in the dialog box. Click Save.</li>
    <li>You can set up a shortcut key in Notepad++ Settings / Shortcut Mapper&#8230;</li>
</ol>

<p>The only pain with this is that I can&#8217;t put extra line breaks in my html&#8230; probably due to my less than expert php skills. It would also be nice to be able to edit the content and update the post from Notepad++&#8230; Next time&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://tzeezy.com/wordpress/?feed=rss2&#038;p=110</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; Clear the contents of a selection</title>
		<link>http://tzeezy.com/wordpress/?p=58</link>
		<comments>http://tzeezy.com/wordpress/?p=58#comments</comments>
		<pubDate>Tue, 08 Mar 2011 07:30:57 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://tzeezy.com/wordpress/?p=58</guid>
		<description><![CDATA[I always end up having to head over to the jQuery site to check the docs on how to clear the html from a selection&#8230; Its $.empty() not clear(): $("selection").empty()]]></description>
			<content:encoded><![CDATA[<p>I always end up having to head over to <a href='http://jquery.com'>the jQuery site</a> to check the docs on how to clear the html from a selection&#8230; Its <code>$.empty()</code> not <em>clear()</em>:</p>

<p><pre lang='javascript'>
$("selection").empty()
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://tzeezy.com/wordpress/?feed=rss2&#038;p=58</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Centering</title>
		<link>http://tzeezy.com/wordpress/?p=21</link>
		<comments>http://tzeezy.com/wordpress/?p=21#comments</comments>
		<pubDate>Mon, 07 Mar 2011 21:12:03 +0000</pubDate>
		<dc:creator>Derek</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://tzeezy.com/wordpress/?p=21</guid>
		<description><![CDATA[Centering things with CSS seems like it should be a straightforward task&#8230; not really! We want to align some text in the middle of a box. Lets try this&#8230; &#60;style&#62; #box1 { text-align: center; vertical-align: middle; border: 1px solid black; height: 5em; } &#60;/style&#62; &#60;div id='box1'&#62; &#60;span class='centered1'&#62;I want this to be centered!&#60;/span&#62; &#60;/div&#62; This [...]]]></description>
			<content:encoded><![CDATA[<p>Centering things with CSS seems like it should be a straightforward task&#8230; not really!</p>

<p>We want to align some text in the middle of a box. Lets try this&#8230;</p>

<pre><code>&lt;style&gt;
    #box1
    {
        text-align: center;
        vertical-align: middle;
        border: 1px solid black;
        height: 5em;
    }
&lt;/style&gt;
&lt;div id='box1'&gt;
    &lt;span class='centered1'&gt;I want this to be centered!&lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p>This renders like this:
<style>
    #box1
    {
        text-align: center;
        vertical-align: middle;
        border: 1px solid black;
        height: 5em;
    }
</style></p>

<div id='box2'>
    <span class='centered1'>I want this to be centered!</span>
</div>

<p>We&#8217;ve gotten it to center in the horizontal direction, but not in the vertical direction. This is because the <code>vertical-align</code> css property is only applied to <em>inline</em> elements. So we shouldn&#8217;t even be using it on our div! So let&#8217;s try using it on our span:</p>

<pre><code>&lt;style&gt;
    #box2
    {
        text-align: center;
        border: 1px solid black;
        height: 5em;
    }
    .centered2
    {
        vertical-align: middle;
    }
&lt;/style&gt;
&lt;div id='box2'&gt;
    &lt;span class='centered2'&gt;I want this to be centered!&lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p><style>
    #box2
    {
        text-align: center;
        border: 1px solid black;
        height: 5em;
    }
    .centered2
    {
        vertical-align: middle;
    }
</style></p>

<div id='box2'>
    <span class='centered2'>I want this to be centered!</span>
</div>

<p>Nothing changed! We&#8217;ve jumped the gun here again&#8230; Turns out that the best way to do this is to use the <code>line-height</code> property! Set it to the same height as the parent container&#8230;</p>

<pre><code>&lt;style&gt;
    #box3
    {
        text-align: center;
        border: 1px solid black;
        height: 5em;
    }
    .centered3
    {
        vertical-align: middle;
    }
&lt;/style&gt;
&lt;div id='box3'&gt;
    &lt;span class='centered3'&gt;I want this to be centered!&lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p>This works out like this:
<style>
    #box3
    {
        text-align: center;
        border: 1px solid black;
        height: 5em;
    }
    .centered3
    {
         line-height: 5em;
    }
</style></p>

<div id='box3'>
    <span class='centered3'>I want this to be centered!</span>
</div>

<p>If you want the font-size to be different in the child container, you&#8217;ll need some mathematical voodoo&#8230;</p>

<pre><code>&lt;style&gt;
    #box4
    {
        text-align: center;
        border: 1px solid black;
        height: 5em;
    }
    .centered4
    {
        line-height: 2.5em;
    }
&lt;/style&gt;
&lt;div id='box4'&gt;
    &lt;span class='centered4'&gt;I want this to be centered!&lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p>And the font size gets bigger and the line height doesn&#8217;t need to be as large:
<style>
    #box4
    {
        text-align: center;
        border: 1px solid black;
        height: 5em;
    }
    .centered4
    {
        line-height: 2.5em;
        font-size: 2em;
    }
</style></p>

<div id='box4'>
    <span class='centered4'>I want this to be centered!</span>
</div>

<p>Thats just to vertically center an inline element within a div. Even more fun and games when we try to center a block element within another div&#8230; next time!</p>

<p><style></p>

<h1>content pre</h1>

<p>{
    font-size: 12px;
    line-height: 1.25em;
}
</style></p>
]]></content:encoded>
			<wfw:commentRss>http://tzeezy.com/wordpress/?feed=rss2&#038;p=21</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello PHP</title>
		<link>http://tzeezy.com/wordpress/?p=4</link>
		<comments>http://tzeezy.com/wordpress/?p=4#comments</comments>
		<pubDate>Fri, 04 Mar 2011 20:39:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[concatenation]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://tzeezy.com/wordpress/?p=4</guid>
		<description><![CDATA[String concatenation in PHP for beginners]]></description>
			<content:encoded><![CDATA[<p>So I started learning PHP. Had a quick scan through some syntax and language features but got a little ahead of myself. What I really wanted to do was load some data from another website into my page. I wanted to do it from the client-side with ajax, but that&#8217;s not possible. PHP function <code>file_get_contents()</code> to the rescue! But it didn&#8217;t work&#8230; I thought there was some bad setting in my <em>php.ini</em>, but <code>allow_url_fopen</code> was ok.</p>

<p>Turns out that I was building the url for the <code>file_get_contents()</code> function call from some <code>$_POST</code> values from my ajax call. I was being lazy and simply building a string and hadn&#8217;t yet found out that the PHP operator for string concatenation is <code>.</code> and not <code>+</code>!</p>

<p>Anyway&#8230; problem solved for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://tzeezy.com/wordpress/?feed=rss2&#038;p=4</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

