<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to use SSL / HTTPS effectively in your PHP website</title>
	<atom:link href="http://www.ideologics.co.uk/programming/how-to-use-https-effectively-in-your-php-website/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ideologics.co.uk/programming/how-to-use-https-effectively-in-your-php-website</link>
	<description>All About Computers</description>
	<lastBuildDate>Tue, 08 May 2012 17:30:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Frank</title>
		<link>http://www.ideologics.co.uk/programming/how-to-use-https-effectively-in-your-php-website#comment-46</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 27 Apr 2011 05:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.eyeonsilicon.co.uk/?p=270#comment-46</guid>
		<description>Hey! Great article ! Thanks for sharing this. I&#039;d like to know something however.  If I simply enforce the use of https on the pages where sensitive info is being sent, will I get an effective protection or are there normally other steps required to safely encrypt data ? I have heard of other methods such as using private/public keys to store data in databases, but is this really useful if I only want the data to be encrypted from client to server ?

Thank you!</description>
		<content:encoded><![CDATA[<p>Hey! Great article ! Thanks for sharing this. I&#8217;d like to know something however.  If I simply enforce the use of https on the pages where sensitive info is being sent, will I get an effective protection or are there normally other steps required to safely encrypt data ? I have heard of other methods such as using private/public keys to store data in databases, but is this really useful if I only want the data to be encrypted from client to server ?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.ideologics.co.uk/programming/how-to-use-https-effectively-in-your-php-website#comment-45</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 25 Nov 2010 01:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.eyeonsilicon.co.uk/?p=270#comment-45</guid>
		<description>Hey thanks for letting me know about the image. Fixed it now. :)</description>
		<content:encoded><![CDATA[<p>Hey thanks for letting me know about the image. Fixed it now. <img src='http://www.ideologics.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.ideologics.co.uk/programming/how-to-use-https-effectively-in-your-php-website#comment-44</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Wed, 24 Nov 2010 13:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.eyeonsilicon.co.uk/?p=270#comment-44</guid>
		<description>Huh, interesting. Thanks mang. Also - your image there is a bit broken. Time for a cigarette. :)</description>
		<content:encoded><![CDATA[<p>Huh, interesting. Thanks mang. Also &#8211; your image there is a bit broken. Time for a cigarette. <img src='http://www.ideologics.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.ideologics.co.uk/programming/how-to-use-https-effectively-in-your-php-website#comment-43</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 27 Jul 2010 23:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.eyeonsilicon.co.uk/?p=270#comment-43</guid>
		<description>@Jean:

You&#039;re quite right! If you are going to submit data to a form from a non-encrypted page, then you must make sure that you type in the complete URL with HTTPS:// included.</description>
		<content:encoded><![CDATA[<p>@Jean:</p>
<p>You&#8217;re quite right! If you are going to submit data to a form from a non-encrypted page, then you must make sure that you type in the complete URL with HTTPS:// included.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://www.ideologics.co.uk/programming/how-to-use-https-effectively-in-your-php-website#comment-42</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Thu, 15 Apr 2010 05:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.eyeonsilicon.co.uk/?p=270#comment-42</guid>
		<description>Very informative. There is however something that is puzzling me and can&#039;t find anything when I google for it.

 what happen to the data passed with the url. 

if I have http://www.mysite/login.php?usr=asd&amp;pwd=123

is the usr and pwd content definitly not encrypted even if I redirect? I obviously think it&#039;s not encrypted, but I have limited knowledge on that matter. I don&#039;t see the point in redirecting within php to https because the data is already available. 

Or is it not working like that?

 thanks for you help.

Jean</description>
		<content:encoded><![CDATA[<p>Very informative. There is however something that is puzzling me and can&#8217;t find anything when I google for it.</p>
<p> what happen to the data passed with the url. </p>
<p>if I have <a href="http://www.mysite/login.php?usr=asd&#038;pwd=123" rel="nofollow">http://www.mysite/login.php?usr=asd&#038;pwd=123</a></p>
<p>is the usr and pwd content definitly not encrypted even if I redirect? I obviously think it&#8217;s not encrypted, but I have limited knowledge on that matter. I don&#8217;t see the point in redirecting within php to https because the data is already available. </p>
<p>Or is it not working like that?</p>
<p> thanks for you help.</p>
<p>Jean</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<div style="height: 65px;">
</div>

<style>
.chatshadow {
-moz-box-shadow: 0px 0px 5px 1px #000000;
-webkit-box-shadow: 0px 0px 5px 1px #000000;
box-shadow: 0px 0px 5px 1px #000000;
}
textarea { font: 10pt Calibri; }
</style>

<div class="chatshadow" style="position: fixed; left: 20px; right: 20px; bottom: 0px;
  border: 4px solid #0080FF; border-bottom: 0px; background: #EEEEEE; font: 9pt Calibri; ">
<div style="padding: 5px; color: #000000;">

<div id="chat_update_count" style="float: right; display: none;">0</div>

<div id="chat_div" style="display: none;">

<div style="padding-bottom: 5px; text-align: center;">
Chat room for this page.
<input type="button" value="Close Chat" onclick="closeChat();" style="padding: 4px 8px; font: 9pt Calibri; color: #000000;">
</div>

<div id="chat_log_div" style="height: 150px; overflow: auto; padding: 10px; background: #FFFFFF; border: 1px solid #363636;">
<div id="chat_log" style="font: 9pt Verdana;">
</div>
</div>

<div style="padding-top: 2px; text-align: center;">
<input id="chat_message" style="font: 9pt Verdana; color: #000000; width: 200px; padding: 6px 4px; background: #FFFFFF; border: 1px solid #363636;" onKeyPress="checkChatEvent(event)">
</div>

</div>

<div id="chat_idle_div" style="text-align: center; display: block;">

<b>Are you looking for help?</b> Chat with other visitors here! <span style="padding: 3px; background: #0080FF; color: #FFFFFF; font-weight: 600;">Programming Room:</span> <span id="chat_count">There are no other people in this room.</span> <input type="button" value="Open Chat" onclick="openChat();" style="padding: 4px 8px; font: 9pt Calibri; color: #000000;"></div>




</div>
</div>

<script>
var chat_on=false,update_count=0;
function openChat() {
  document.getElementById('chat_idle_div').style.display='none';
  document.getElementById('chat_div').style.display='block';
  document.getElementById('chat_message').focus();
  chat_on=true;
  updateChat();
}
function closeChat() {
  document.getElementById('chat_div').style.display='none';
  document.getElementById('chat_idle_div').style.display='block';
  chat_on=false;
}
function updateChat() {
  update_count++;
  document.getElementById('chat_update_count').innerHTML=update_count;

  var xmlHttp;

  xmlHttp=GetXmlHttpObject();
  xmlHttp.onreadystatechange=function() {
    if (xmlHttp.readyState==4) {
      if (chat_on) {
        document.getElementById('chat_log').innerHTML=xmlHttp.responseText;
        chatScroll();
      } else {
        document.getElementById('chat_count').innerHTML=xmlHttp.responseText;
      }
      delete xmlHttp;
    }
  }
  url="/chat_read.php?epoch="+getEpoch()+"&page=programming";
  if (chat_on)
    url=url+"&chat_on=1";
  else
    url=url+"&chat_on=0";
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);

}
function getEpoch() {
  return Math.round(new Date().getTime()/1000.0);
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
function resizeForm() {
  var theWidth, theHeight;
  // Window dimensions:
  if (window.innerWidth) {
  theWidth=window.innerWidth;
  }
  else if (document.documentElement && document.documentElement.clientWidth) {
  theWidth=document.documentElement.clientWidth;
  }
  else if (document.body) {
  theWidth=document.body.clientWidth;
  }
  if (window.innerHeight) {
  theHeight=window.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight) {
  theHeight=document.documentElement.clientHeight;
  }
  else if (document.body) {
  theHeight=document.body.clientHeight;
  }

  document.getElementById('chat_message').style.width=(theWidth-85)+'px';
}

function checkChatEvent(e) {
  var characterCode;

  if (e && e.which) {
    e=e;
    characterCode=e.which;
  } else {
    e=event;
    characterCode=e.keyCode;
  }

  if (characterCode==13) {
    chatSendMessage();
    return false;
  }

}


function chatSendMessage() {
  var t=document.getElementById('chat_message').value;
  var xmlHttp,objDiv;

  document.getElementById('chat_message').value='';

  xmlHttp=GetXmlHttpObject();
  xmlHttp.onreadystatechange=function() {
    if (xmlHttp.readyState==4) {
      if (xmlHttp.status==200) {
        updateChat();
      }
      delete xmlHttp;
    }
  }
  xmlHttp.open("GET","/chat_send.php?epoch="+getEpoch()+"&page=programming&message="+encodeURIComponent(t),true);
  xmlHttp.send(null);

}
function chatScroll() {
  document.getElementById('chat_log_div').scrollTop=document.getElementById('chat_log_div').scrollHeight;
}



window.onresize = function(){
  resizeForm();
}

resizeForm();
setInterval('updateChat()',3000);
</script>
