<?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: Writing Secure PHP Scripts &#8211; Part 1</title>
	<atom:link href="http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/</link>
	<description>WordPress Plugins, PHP Scripts, Tools, and Tutorials</description>
	<lastBuildDate>Tue, 16 Mar 2010 11:09:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Karolis</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-134840</link>
		<dc:creator>Karolis</dc:creator>
		<pubDate>Tue, 08 Jan 2008 18:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-134840</guid>
		<description>Hello there, great article.
i have been using a slightly different approach.
&lt;code&gt;
##
# Get rid of magic quotes in .htaccess
#php_flag magic_quotes_gpc off
##

$cleanPost=array();

foreach($_POST as $key=&gt;$value){
 $cleanPost[$key]=mysql_real_escape_string(htmlentities($value,ENT_QUOTES));
}
&lt;/code&gt;
I combined htmlentities() and mysql_real_escape_string() for the sake of keeping it short.
Now, whenever i need a user submitted value from $_POST,
i reference $cleanPost instead.

I&#039;d like to hear your opinion on this method.
Thanks</description>
		<content:encoded><![CDATA[<p>Hello there, great article.<br />
i have been using a slightly different approach.<br />
<pre><code>
##
# Get rid of magic quotes in .htaccess
#php_flag magic_quotes_gpc off
##

$cleanPost=array();

foreach($_POST as $key=&gt;$value){
 $cleanPost[$key]=mysql_real_escape_string(htmlentities($value,ENT_QUOTES));
}
</code></pre><br />
I combined htmlentities() and mysql_real_escape_string() for the sake of keeping it short.<br />
Now, whenever i need a user submitted value from $_POST,<br />
i reference $cleanPost instead.</p>
<p>I&#8217;d like to hear your opinion on this method.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-96431</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sun, 04 Nov 2007 15:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-96431</guid>
		<description>Thanks for this! I was gonna release a login form + some other scripts without any security knowledge..saved this in a category called very imp on my bookmarks :)

Thanks again</description>
		<content:encoded><![CDATA[<p>Thanks for this! I was gonna release a login form + some other scripts without any security knowledge..saved this in a category called very imp on my bookmarks <img src='http://www.dagondesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-81628</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Fri, 14 Sep 2007 21:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-81628</guid>
		<description>This is not only good stuff, it is _exceptionally_ well written -- an all-too-rare combination.  Thanks.</description>
		<content:encoded><![CDATA[<p>This is not only good stuff, it is _exceptionally_ well written &#8212; an all-too-rare combination.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-77800</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 30 Aug 2007 18:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-77800</guid>
		<description>So, part one from 2005. When and where is part 2 :-)</description>
		<content:encoded><![CDATA[<p>So, part one from 2005. When and where is part 2 <img src='http://www.dagondesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-55868</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Thu, 21 Jun 2007 00:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-55868</guid>
		<description>&lt;b&gt;vanj&lt;/b&gt;: There is no information here about encrypting email messages, so I am not sure what you mean.</description>
		<content:encoded><![CDATA[<p><b>vanj</b>: There is no information here about encrypting email messages, so I am not sure what you mean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vanj</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-55602</link>
		<dc:creator>vanj</dc:creator>
		<pubDate>Wed, 20 Jun 2007 09:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-55602</guid>
		<description>Great articles and work!
I just have a question:

After sending the encripted email,  will the receiver viewing the email be able to read the message using an any POP mail software like outlook or entourage?

Thanks!</description>
		<content:encoded><![CDATA[<p>Great articles and work!<br />
I just have a question:</p>
<p>After sending the encripted email,  will the receiver viewing the email be able to read the message using an any POP mail software like outlook or entourage?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-46078</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sat, 19 May 2007 05:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-46078</guid>
		<description>Very helpful.  I never came by the mailer issue until now.  I am really glad I did!

-Frank</description>
		<content:encoded><![CDATA[<p>Very helpful.  I never came by the mailer issue until now.  I am really glad I did!</p>
<p>-Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-41039</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Wed, 18 Apr 2007 18:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-41039</guid>
		<description>Very helpful information!  I like the way you kept it focused, direct, and very practical.  Many thanks!!</description>
		<content:encoded><![CDATA[<p>Very helpful information!  I like the way you kept it focused, direct, and very practical.  Many thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abbe</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-40712</link>
		<dc:creator>Abbe</dc:creator>
		<pubDate>Mon, 16 Apr 2007 20:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-40712</guid>
		<description>I enjoyed reading this useful, easy to read and understand, article and am looking forward to read next parts soon.
Thanks.</description>
		<content:encoded><![CDATA[<p>I enjoyed reading this useful, easy to read and understand, article and am looking forward to read next parts soon.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anna</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-38322</link>
		<dc:creator>anna</dc:creator>
		<pubDate>Thu, 05 Apr 2007 09:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-38322</guid>
		<description>Can I write from PHP to an html form(a text area)</description>
		<content:encoded><![CDATA[<p>Can I write from PHP to an html form(a text area)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-18634</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 21 Dec 2006 21:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-18634</guid>
		<description>Thanks for the tutorial. I wasn&#039;t aware of the special mysql_real_escape_string function. I will have go go through and make sure that I am securing my user input.</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial. I wasn&#8217;t aware of the special mysql_real_escape_string function. I will have go go through and make sure that I am securing my user input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-3931</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 28 Aug 2006 17:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-3931</guid>
		<description>Thx. Was about to publish something with almost no user input secruity.</description>
		<content:encoded><![CDATA[<p>Thx. Was about to publish something with almost no user input secruity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-373</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Wed, 08 Mar 2006 20:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-373</guid>
		<description>vipin: It is always a good idea. Never trust user input! :)</description>
		<content:encoded><![CDATA[<p>vipin: It is always a good idea. Never trust user input! <img src='http://www.dagondesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vipin</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-371</link>
		<dc:creator>vipin</dc:creator>
		<pubDate>Wed, 08 Mar 2006 06:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-371</guid>
		<description>Is it must to validate all field seperately before sending mails in secure php mail scriptiing?</description>
		<content:encoded><![CDATA[<p>Is it must to validate all field seperately before sending mails in secure php mail scriptiing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-285</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Sun, 19 Feb 2006 23:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-285</guid>
		<description>There may be, but I am not aware of any.</description>
		<content:encoded><![CDATA[<p>There may be, but I am not aware of any.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gee</title>
		<link>http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/comment-page-1/#comment-284</link>
		<dc:creator>Gee</dc:creator>
		<pubDate>Sun, 19 Feb 2006 17:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.dagondesign.com/articles/writing-secure-php-scripts-part-1/#comment-284</guid>
		<description>Is there any software which can check security holes in .php files?</description>
		<content:encoded><![CDATA[<p>Is there any software which can check security holes in .php files?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
