<?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>Wed, 10 Mar 2010 10:59:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
	<item>
		<title>By: Roshan</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-1006</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Mon, 26 May 2008 08:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-1006</guid>
		<description>ya Dave absolutely........these are essential functions from the security point of view in PHP

@ jaredmellentine - you can do it in both way either type casting the variable or use intval(), I think syntax for using intval() is a bit easier than using variable type casting for beginners.</description>
		<content:encoded><![CDATA[<p>ya Dave absolutely&#8230;&#8230;..these are essential functions from the security point of view in PHP</p>
<p>@ jaredmellentine &#8211; you can do it in both way either type casting the variable or use intval(), I think syntax for using intval() is a bit easier than using variable type casting for beginners.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Marshall</title>
		<link>http://roshanbh.com.np/2008/05/tighten-php-security-functions.html/comment-page-1#comment-1005</link>
		<dc:creator>Dave Marshall</dc:creator>
		<pubDate>Mon, 26 May 2008 07:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/?p=112#comment-1005</guid>
		<description>I&#039;d change the title of your post, I think these functions are not only useful, they are essential.</description>
		<content:encoded><![CDATA[<p>I&#8217;d change the title of your post, I think these functions are not only useful, they are essential.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
