<?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>cyfinity &#187; if ssl</title>
	<atom:link href="http://www.cyfinity.com/tag/if-ssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyfinity.com</link>
	<description>If it's broke, fix it</description>
	<lastBuildDate>Mon, 14 Nov 2011 14:23:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using PHP to detect SSL per page</title>
		<link>http://www.cyfinity.com/2009/02/using-php-to-detect-ssl-per-page/</link>
		<comments>http://www.cyfinity.com/2009/02/using-php-to-detect-ssl-per-page/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 15:48:43 +0000</pubDate>
		<dc:creator>ninjaneer</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[check for ssl]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[if ssl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.cyfinity.com/?p=683</guid>
		<description><![CDATA[If you&#8217;ve ever run a site which uses an SSL certificate, you may have found a problem when your site calls information (images perhaps) from a third-party website which does not use an SSL certificate. The user&#8217;s web-browser will often display an icon or some other form of indication that part of the transaction is [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever run a site which uses an SSL certificate, you may have found a problem when your site calls information (images perhaps) from a third-party website which does not use an SSL certificate. The user&#8217;s web-browser will often display an icon or some other form of indication that part of the transaction is no-longer encrypted.</p>
<p>Ideally you want to avoid calling the external content on any page which is SSL secured or rather (for the purposes of this statement) only call the content when on a non SSL secured page.</p>
<p>Thankfully, if you&#8217;re using Apache and PHP, you&#8217;re on to a winner. The following statement checks with Apaches as to whether the current page is being served as HTTPS or not and renders the page with or without the third-party content as appropriate.</p>
<blockquote><p>&lt;?php  if ($_SERVER['HTTPS'] != &#8220;on&#8221;) { echo &#8216;<em>this is where you make HTML calls to your external content</em>&#8221;;}  ?&gt;</p></blockquote>
<p>This should hopefully get rid of those pesky browser warnings for your dynamic pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyfinity.com/2009/02/using-php-to-detect-ssl-per-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

