<?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>Karl Norling &#187; PHP</title>
	<atom:link href="http://blog.whatevermakesmylifeeasier.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.whatevermakesmylifeeasier.com</link>
	<description>A Swede in New York</description>
	<lastBuildDate>Sun, 14 Mar 2010 23:40:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flir security check.</title>
		<link>http://blog.whatevermakesmylifeeasier.com/2009/04/16/flir-security-check/</link>
		<comments>http://blog.whatevermakesmylifeeasier.com/2009/04/16/flir-security-check/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 03:00:10 +0000</pubDate>
		<dc:creator>karl</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[flir]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.whatevermakesmylifeeasier.com/?p=62</guid>
		<description><![CDATA[
			
				
			
		
This is the PHP snippet in the generate.php file from the FLIR.
This code will check if the request to generate the FLIR image is allowed or not.
if(false !== ALLOWED_DOMAIN &#38;&#38; $_SERVER['HTTP_REFERER'] != '') {
    $refhost = get_hostname($_SERVER['HTTP_REFERER']);
    if(substr(ALLOWED_DOMAIN, 0, 1) == '.') {
       [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.whatevermakesmylifeeasier.com%2F2009%2F04%2F16%2Fflir-security-check%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.whatevermakesmylifeeasier.com%2F2009%2F04%2F16%2Fflir-security-check%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This is the PHP snippet in the generate.php file from the FLIR.</p>
<p>This code will check if the request to generate the FLIR image is allowed or not.</p>
<pre>if(false !== ALLOWED_DOMAIN &amp;&amp; $_SERVER['HTTP_REFERER'] != '') {
    $refhost = get_hostname($_SERVER['HTTP_REFERER']);
    if(substr(ALLOWED_DOMAIN, 0, 1) == '.') {
        if(false === strpos($refhost, substr(ALLOWED_DOMAIN, 1)))
            err('DISALLOWED_DOMAIN');
    }else {
        if($refhost != ALLOWED_DOMAIN)
            err('DISALLOWED_DOMAIN');
    }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.whatevermakesmylifeeasier.com/2009/04/16/flir-security-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flir</title>
		<link>http://blog.whatevermakesmylifeeasier.com/2009/03/23/flir/</link>
		<comments>http://blog.whatevermakesmylifeeasier.com/2009/03/23/flir/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 01:04:56 +0000</pubDate>
		<dc:creator>karl</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Cufon]]></category>
		<category><![CDATA[flir]]></category>
		<category><![CDATA[GD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[typeface]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.whatevermakesmylifeeasier.com/?p=34</guid>
		<description><![CDATA[
			
				
			
		
Time to try out a other custom font web intergration, this time it&#8217;s Flir.
&#8220;Facelift Image Replacement (or FLIR, pronounced fleer) is an image replacement script that dynamically generates image representations of text on your web page in fonts that otherwise might not be visible to your visitors. The generated image will be automatically inserted into [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.whatevermakesmylifeeasier.com%2F2009%2F03%2F23%2Fflir%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.whatevermakesmylifeeasier.com%2F2009%2F03%2F23%2Fflir%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Time to try out a other custom font web intergration, this time it&#8217;s <a href="http://facelift.mawhorter.net/" target="_blank">Flir</a>.</p>
<p>&#8220;Facelift Image Replacement (or FLIR, <em>pronounced fleer</em>) is an <strong>image replacement</strong> script that dynamically generates image representations of text on your web page in fonts that otherwise might not be visible to your visitors. The generated image will be automatically inserted into your web page via Javascript and visible to all modern browsers. Any element with text can be replaced: from headers (<span class="code">&lt;h1&gt;</span>, <span class="code">&lt;h2&gt;</span>, etc.) to <span class="code">&lt;span&gt;</span> elements and everything in between!&#8221;</p>
<p>My implementation can you find <a href="http://www.whatevermakesmylifeeasier.com/flir" target="_blank">here</a>. You can compare it to the Cufón test I made earlier, you will find that one <a href="http://www.whatevermakesmylifeeasier.com/cufon" target="_blank">here</a>.</p>
<p>So what&#8217;s the main difference between these? Flir is using PHP and the GD library in PHP to read ttf/dfont/opt files to generate images of these, while Cufón is using VML to generate text based on font files converted to JavaScript.</p>
<p>So far I think Cufón is doing a better job.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.whatevermakesmylifeeasier.com/2009/03/23/flir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
