<?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: 7 Useful functions to tighten the security in PHP</title>
	<atom:link href="http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Tue, 07 Feb 2012 08:10:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sidambara Selvan Blog &#187; Blog Archive &#187; 7 Useful functions to tighten the security in PHP</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-5644</link>
		<dc:creator>Sidambara Selvan Blog &#187; Blog Archive &#187; 7 Useful functions to tighten the security in PHP</dc:creator>
		<pubDate>Mon, 20 Sep 2010 18:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-5644</guid>
		<description>[...] roshanbh.com.np    No Comments  Read [...]</description>
		<content:encoded><![CDATA[<p>[...] roshanbh.com.np    No Comments  Read [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaifu Computing</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-5501</link>
		<dc:creator>Kaifu Computing</dc:creator>
		<pubDate>Wed, 16 Jun 2010 10:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-5501</guid>
		<description>I agree with Dave Marshall - these are absolutely essential for use in any public facing PHP application.

Great blog, subscribed to your RSS feed just now!</description>
		<content:encoded><![CDATA[<p>I agree with Dave Marshall &#8211; these are absolutely essential for use in any public facing PHP application.</p>
<p>Great blog, subscribed to your RSS feed just now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ibrahim sana</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-4763</link>
		<dc:creator>ibrahim sana</dc:creator>
		<pubDate>Sun, 01 Nov 2009 22:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-4763</guid>
		<description>nice post. thanx
The mysql_real_escape function is used for mysql database only ,  for other DBMS other functions is in used. For example in Postgres you can use pg_escape_string for escaping harmful characters. 
please note that some php &quot;bad features&quot; can yield to a real security hole and not mentioned here, for example the register_globals feature.</description>
		<content:encoded><![CDATA[<p>nice post. thanx<br />
The mysql_real_escape function is used for mysql database only ,  for other DBMS other functions is in used. For example in Postgres you can use pg_escape_string for escaping harmful characters.<br />
please note that some php &#8220;bad features&#8221; can yield to a real security hole and not mentioned here, for example the register_globals feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CHITARANNJAN SATHUA</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-4596</link>
		<dc:creator>CHITARANNJAN SATHUA</dc:creator>
		<pubDate>Fri, 18 Sep 2009 09:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-4596</guid>
		<description>if i will convert all the special character to html and insert in to my database 
and how can i retrive data and shows as it i want</description>
		<content:encoded><![CDATA[<p>if i will convert all the special character to html and insert in to my database<br />
and how can i retrive data and shows as it i want</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Poulos</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-4136</link>
		<dc:creator>Nick Poulos</dc:creator>
		<pubDate>Sun, 21 Jun 2009 23:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-4136</guid>
		<description>I know for certain types of variables (like zip code, phone, email, ssn, etc) regular expressions are preferred or even necessary in some cases.  But for quick and easy validation for certain var types - what about using functions like is_numeric to check variables? For ex:

if (!is_numeric($_GET[&quot;id&quot;]))
    $errors[ ]=&quot;You did not enter a valid id!&quot;;
else
   $id=$_GET[&quot;id&quot;];

Any reason this would be unsafe or poses a risk?</description>
		<content:encoded><![CDATA[<p>I know for certain types of variables (like zip code, phone, email, ssn, etc) regular expressions are preferred or even necessary in some cases.  But for quick and easy validation for certain var types &#8211; what about using functions like is_numeric to check variables? For ex:</p>
<p>if (!is_numeric($_GET["id"]))<br />
    $errors[ ]=&#8221;You did not enter a valid id!&#8221;;<br />
else<br />
   $id=$_GET["id"];</p>
<p>Any reason this would be unsafe or poses a risk?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shahriat Hossain</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-3928</link>
		<dc:creator>Shahriat Hossain</dc:creator>
		<pubDate>Mon, 04 May 2009 05:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-3928</guid>
		<description>Thanks for sharing these useful functions.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing these useful functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tigran.su</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-3531</link>
		<dc:creator>Tigran.su</dc:creator>
		<pubDate>Fri, 06 Feb 2009 12:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-3531</guid>
		<description>i like this article. it read it and it was very funny, but if anybody  wants to be more professional, must read GOOGLE...:))))))))</description>
		<content:encoded><![CDATA[<p>i like this article. it read it and it was very funny, but if anybody  wants to be more professional, must read GOOGLE&#8230;:))))))))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enlaces del 05-02-09 &#124; evelio.info</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-3526</link>
		<dc:creator>Enlaces del 05-02-09 &#124; evelio.info</dc:creator>
		<pubDate>Thu, 05 Feb 2009 07:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-3526</guid>
		<description>[...] Useful functions to tighten the PHP security [...]</description>
		<content:encoded><![CDATA[<p>[...] Useful functions to tighten the PHP security [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asad Abbas</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-3411</link>
		<dc:creator>Asad Abbas</dc:creator>
		<pubDate>Sat, 27 Dec 2008 05:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-3411</guid>
		<description>nice article ... I like all the tips especially intval :p .... people just forget simple things and get caught !</description>
		<content:encoded><![CDATA[<p>nice article &#8230; I like all the tips especially intval :p &#8230;. people just forget simple things and get caught !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit Peters</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-3000</link>
		<dc:creator>Kit Peters</dc:creator>
		<pubDate>Mon, 27 Oct 2008 21:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-3000</guid>
		<description>I would go one further than previous commenter Jasper and recommend *against* using the mysql_* functions at all.  Instead, use the PDO classes, which ship with recent versions of PHP.</description>
		<content:encoded><![CDATA[<p>I would go one further than previous commenter Jasper and recommend *against* using the mysql_* functions at all.  Instead, use the PDO classes, which ship with recent versions of PHP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-1101</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Wed, 04 Jun 2008 11:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-1101</guid>
		<description>Thanks SNaRe for motivation...</description>
		<content:encoded><![CDATA[<p>Thanks SNaRe for motivation&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SNaRe</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-1100</link>
		<dc:creator>SNaRe</dc:creator>
		<pubDate>Wed, 04 Jun 2008 05:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-1100</guid>
		<description>Your articles are really great. I added you to my rss list</description>
		<content:encoded><![CDATA[<p>Your articles are really great. I added you to my rss list</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: salman</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-1050</link>
		<dc:creator>salman</dc:creator>
		<pubDate>Thu, 29 May 2008 20:50:16 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-1050</guid>
		<description>wow nice post dude. thanks for this </description>
		<content:encoded><![CDATA[<p>wow nice post dude. thanks for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-05-27 &#124; Mior Muhammad Zaki</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-1022</link>
		<dc:creator>links for 2008-05-27 &#124; Mior Muhammad Zaki</dc:creator>
		<pubDate>Tue, 27 May 2008 12:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-1022</guid>
		<description>[...] Useful functions to tighten the PHP security (tags: programming PHP Security tips) [...]</description>
		<content:encoded><![CDATA[<p>[...] Useful functions to tighten the PHP security (tags: programming PHP Security tips) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 7 ??????? PHP, ??????? ????? ???????? ???????????? ????? &#124; ????????.??</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-1016</link>
		<dc:creator>7 ??????? PHP, ??????? ????? ???????? ???????????? ????? &#124; ????????.??</dc:creator>
		<pubDate>Mon, 26 May 2008 23:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-1016</guid>
		<description>[...] ????????: ???? ?????? ?????????. [...]</description>
		<content:encoded><![CDATA[<p>[...] ????????: ???? ?????? ?????????. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/19 queries in 0.016 seconds using disk: basic
Object Caching 400/401 objects using disk: basic

Served from: roshanbh.com.np @ 2012-02-09 05:53:33 -->
