<?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: Top 7 PHP Security Blunders</title>
	<atom:link href="http://blog.tuvinh.com/top-7-php-security-blunders/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tuvinh.com/top-7-php-security-blunders/</link>
	<description>Web Design &#38; Development, Software Development, Graphic Design</description>
	<lastBuildDate>Tue, 09 Mar 2010 05:37:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paolo</title>
		<link>http://blog.tuvinh.com/top-7-php-security-blunders/comment-page-1/#comment-1194</link>
		<dc:creator>Paolo</dc:creator>
		<pubDate>Tue, 03 Nov 2009 11:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tuvinh.com/?p=1457#comment-1194</guid>
		<description>Are all these things addressed by Framworks?</description>
		<content:encoded><![CDATA[<p>Are all these things addressed by Framworks?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Ferk</title>
		<link>http://blog.tuvinh.com/top-7-php-security-blunders/comment-page-1/#comment-1184</link>
		<dc:creator>Andrew Ferk</dc:creator>
		<pubDate>Thu, 29 Oct 2009 14:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tuvinh.com/?p=1457#comment-1184</guid>
		<description>Hey what&#039;s up huongnt2, my buddy!  I have a couple comments if you don&#039;t mind.

SHA256
------
sha256 is generally available with PHP 4/5.  Depending on what&#039;s available you can use the mhash or hash fucntion.  For example in PHP 4 here is how I do sha256:

function sha256($string)
{
  return bin2hex(mhash(MHASH_SHA256,$string));
}

Also, if you need to store a password in the session... YOU DON&#039;T, please pick up a new hobby and stop attempting to be a &#039;programmer&#039;!!!

SQL INJECTION
-------------
And for SQL injection vulnerabilities, you can actually use the function mysql_real_escape_string... or if you are using a new version of PHP, there are actually classes with built-in escaping... who knew!

SAFE MODE
---------
Don&#039;t use it!  Why?  Read the manual: &quot;Safe Mode is deprecated in PHP 5.3.0 and is removed in PHP 6.0.0.&quot;  Get a virtual server for your hosting account and you won&#039;t have to worry about it.


A lot of the stuff in this post is generally useful, but if people are just learning this... they are a decade behind :(</description>
		<content:encoded><![CDATA[<p>Hey what&#8217;s up huongnt2, my buddy!  I have a couple comments if you don&#8217;t mind.</p>
<p>SHA256<br />
&#8212;&#8212;<br />
sha256 is generally available with PHP 4/5.  Depending on what&#8217;s available you can use the mhash or hash fucntion.  For example in PHP 4 here is how I do sha256:</p>
<p>function sha256($string)<br />
{<br />
  return bin2hex(mhash(MHASH_SHA256,$string));<br />
}</p>
<p>Also, if you need to store a password in the session&#8230; YOU DON&#8217;T, please pick up a new hobby and stop attempting to be a &#8216;programmer&#8217;!!!</p>
<p>SQL INJECTION<br />
&#8212;&#8212;&#8212;&#8212;-<br />
And for SQL injection vulnerabilities, you can actually use the function mysql_real_escape_string&#8230; or if you are using a new version of PHP, there are actually classes with built-in escaping&#8230; who knew!</p>
<p>SAFE MODE<br />
&#8212;&#8212;&#8212;<br />
Don&#8217;t use it!  Why?  Read the manual: &#8220;Safe Mode is deprecated in PHP 5.3.0 and is removed in PHP 6.0.0.&#8221;  Get a virtual server for your hosting account and you won&#8217;t have to worry about it.</p>
<p>A lot of the stuff in this post is generally useful, but if people are just learning this&#8230; they are a decade behind :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canyon</title>
		<link>http://blog.tuvinh.com/top-7-php-security-blunders/comment-page-1/#comment-1183</link>
		<dc:creator>Canyon</dc:creator>
		<pubDate>Thu, 29 Oct 2009 13:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tuvinh.com/?p=1457#comment-1183</guid>
		<description>I think there is a misqtake here : if (get_magic_quotes_gpc()).. instead of if (!get_magic_quotes_gpc())
Cordially</description>
		<content:encoded><![CDATA[<p>I think there is a misqtake here : if (get_magic_quotes_gpc()).. instead of if (!get_magic_quotes_gpc())<br />
Cordially</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: z.Yleo77</title>
		<link>http://blog.tuvinh.com/top-7-php-security-blunders/comment-page-1/#comment-1182</link>
		<dc:creator>z.Yleo77</dc:creator>
		<pubDate>Thu, 29 Oct 2009 12:39:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tuvinh.com/?p=1457#comment-1182</guid>
		<description>ａ　ｇｏｏｄ　ａｒｔｉｃｌｅ　ｗｈｉｃｈ　ｉｓ　ｖｅｒｙ　ｕｓｅｆｕｌ　ｆｏｒ　ｍｅ．．．</description>
		<content:encoded><![CDATA[<p>ａ　ｇｏｏｄ　ａｒｔｉｃｌｅ　ｗｈｉｃｈ　ｉｓ　ｖｅｒｙ　ｕｓｅｆｕｌ　ｆｏｒ　ｍｅ．．．</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://blog.tuvinh.com/top-7-php-security-blunders/comment-page-1/#comment-1178</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Tue, 27 Oct 2009 19:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tuvinh.com/?p=1457#comment-1178</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by yousukezan: RT @tweetmeme Top 7 PHP Security Blunders &#124; TuVinhSoft .,JSC http://bit.ly/3wkQzZ...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by yousukezan: RT @tweetmeme Top 7 PHP Security Blunders | TuVinhSoft .,JSC <a href="http://bit.ly/3wkQzZ.." rel="nofollow">http://bit.ly/3wkQzZ..</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
