<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB"><title>Comments on Writing Secure PHP - AddedBytes.com</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/" /><link rel="self" type="application/xml" href="http://www.addedbytes.com/article/writing-secure-php/comments/atom/" /><subtitle>Latest comments on Writing Secure PHP on AddedBytes.com</subtitle><author><name>Dave Child</name></author><updated>2004-07-16T10:07:15Z</updated><id>tag:addedbytes.com,2004:130</id><!-- ckey="76C662BB" --><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by Hamman Samuel ( &lt;a href="http://samuel.sveit.com"&gt;http://samuel.sveit.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;This is a super site, especially this article on PHP security. I'm kind of an intermediate programmer in PHP and am just starting to learn about security. This was more comprehensive than all my searches of the previous 2-3 months! Would you believe I got to this site while searching for a regular expression cheat sheet! 2-in-1 :)</summary><id>tag:addedbytes.com,2008:104736</id><published>2008-09-23T12:34:37+01:00</published><updated>2008-09-23T12:34:37Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by Rajassegarin ( &lt;a href="http://www.ipodvideos.in"&gt;http://www.ipodvideos.in&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;It's really a very good article. All the PHP learners should aware of these attacks. Thanks for the nice post.</summary><id>tag:addedbytes.com,2008:104661</id><published>2008-09-19T05:53:45+01:00</published><updated>2008-09-19T05:53:45Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by Joe ( &lt;a href="http://codertips.com"&gt;http://codertips.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;You may want to write about the new PDO class in PHP which can sanitize SQL queries for you. It is useful to learn and a lot of languages use similar features.</summary><id>tag:addedbytes.com,2008:104480</id><published>2008-09-11T15:32:03+01:00</published><updated>2008-09-11T15:32:03Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by web development &amp; programming ( &lt;a href="http://www.amcoitsystems.com"&gt;http://www.amcoitsystems.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Hi, I am project Manager and i delivered this blog to my PHP developer because i found great stuff.Thanks</summary><id>tag:addedbytes.com,2008:104174</id><published>2008-09-05T07:15:19+01:00</published><updated>2008-09-05T07:15:19Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by My Webiste Adviser ( &lt;a href="http://www.mywebsiteadviser.com"&gt;http://www.mywebsiteadviser.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;SQL injection is a serious problem, you can add additional checks:&lt;br /&gt;
&lt;br /&gt;
$_GET['userid'] = str_replace(&quot;'&quot;, &quot;&quot;, $_GET['userid']);&lt;br /&gt;
Remove all ' symbols from the userid string.&lt;br /&gt;
&lt;br /&gt;
$_GET['userid'] = str_replace(&quot; &quot;, &quot;&quot;, $_GET['userid']);		&lt;br /&gt;
Remove all spaces from the userid string.&lt;br /&gt;
&lt;br /&gt;
$_GET['userid'] = trim( htmlspecialchars(addslashes($_GET['userid'])) );&lt;br /&gt;
Returns a string with backslashes before special characters and change special character (for example from &amp; to &amp;amp;&lt;br /&gt;
&lt;br /&gt;
All these steps will prevent your website from running malicious SQL scripts.</summary><id>tag:addedbytes.com,2008:104046</id><published>2008-08-29T07:30:17+01:00</published><updated>2008-08-29T07:30:17Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by patrickd ( &lt;a href="http://infoos.net"&gt;http://infoos.net&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;thnx! you got great stuffs in here guys. learned a l0t</summary><id>tag:addedbytes.com,2008:99295</id><published>2008-07-19T02:26:33+01:00</published><updated>2008-07-19T02:26:33Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by Phillip ( &lt;a href="http://humanbagel.com"&gt;http://humanbagel.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Decent list, but doesn't cover XSS, which is the most common exploit today.&lt;br /&gt;
Fix the SQL injection with the addslashes() function, easy fix. XSS is more difficult, but can be done with open source functions</summary><id>tag:addedbytes.com,2008:95423</id><published>2008-05-16T06:23:41+01:00</published><updated>2008-05-16T06:23:41Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by mohamed rami ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Thanks Alot for This Article ,its very&lt;br /&gt;usefull</summary><id>tag:addedbytes.com,2008:85937</id><published>2008-04-04T10:37:27+01:00</published><updated>2008-04-04T10:37:27Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by Alex Tokar ( &lt;a href="http://www.atokar.net/"&gt;http://www.atokar.net/&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Very nice article for new PHP developers.</summary><id>tag:addedbytes.com,2008:83992</id><published>2008-03-27T13:55:27+00:00</published><updated>2008-03-27T13:55:27Z</updated></entry><entry><title>Comment on Writing Secure PHP</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/writing-secure-php/comments/" /><summary type="text">Comment by techguide ( &lt;a href="http://http://www.devanggandhi.net/"&gt;http://http://www.devanggandhi.net/&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;I am new to PHP and this was really helpful</summary><id>tag:addedbytes.com,2008:79422</id><published>2008-02-27T20:42:42+00:00</published><updated>2008-02-27T20:42:42Z</updated></entry></feed>