<?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 for PHP vs .Net</title>
	<atom:link href="http://www.phpvs.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpvs.net</link>
	<description>ASP.Net and PHP go head to head</description>
	<lastBuildDate>Thu, 02 Sep 2010 06:04:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Ten PHP Best Practices Tips that will get you a job by Tony Parrillo</title>
		<link>http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/comment-page-3/#comment-42307</link>
		<dc:creator>Tony Parrillo</dc:creator>
		<pubDate>Thu, 02 Sep 2010 06:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/#comment-42307</guid>
		<description>And Muhkuh, kindly stick to your guns: in one sentence you bash the author for not providing proof of single- vs. double-quoted strings......and then you offer up some B.S. about regexes (which is true, by the way) without offering any sort of benchmarking whatsoever.  Hypocrisy stinks.

This is a good, solid list of &quot;don&#039;t dos&quot; that will benefit a whole lotta peeps.</description>
		<content:encoded><![CDATA[<p>And Muhkuh, kindly stick to your guns: in one sentence you bash the author for not providing proof of single- vs. double-quoted strings&#8230;&#8230;and then you offer up some B.S. about regexes (which is true, by the way) without offering any sort of benchmarking whatsoever.  Hypocrisy stinks.</p>
<p>This is a good, solid list of &#034;don&#039;t dos&#034; that will benefit a whole lotta peeps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ten PHP Best Practices Tips that will get you a job by Tony Parrillo</title>
		<link>http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/comment-page-3/#comment-42305</link>
		<dc:creator>Tony Parrillo</dc:creator>
		<pubDate>Thu, 02 Sep 2010 05:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/#comment-42305</guid>
		<description>Friends, I&#039;m choosing to attack the naysayers of the tab movement. It&#039;s the absolute, most basic of mathematic principles: four bytes consume more bandwidth than one.  So every time you use a space in your rendered code, you&#039;re adding a byte to the bandwidth overhead.

So if you have a line of code with six levels of indentation, you&#039;re looking at either six bytes (tabs) or twenty-four bytes (spaces...if they&#039;re set at four).

We shave single characters in  src attributes by renaming &#039;this-is-the-best-photo.jpg&#039; to &#039;titbp.jpg&#039;.

While it seems like nitpicking, I just can&#039;t abide uninformed commentary.</description>
		<content:encoded><![CDATA[<p>Friends, I&#039;m choosing to attack the naysayers of the tab movement. It&#039;s the absolute, most basic of mathematic principles: four bytes consume more bandwidth than one.  So every time you use a space in your rendered code, you&#039;re adding a byte to the bandwidth overhead.</p>
<p>So if you have a line of code with six levels of indentation, you&#039;re looking at either six bytes (tabs) or twenty-four bytes (spaces&#8230;if they&#039;re set at four).</p>
<p>We shave single characters in  src attributes by renaming &#039;this-is-the-best-photo.jpg&#039; to &#039;titbp.jpg&#039;.</p>
<p>While it seems like nitpicking, I just can&#039;t abide uninformed commentary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Blake&#039;s CentOS LAMP Server Guide, Single Page HTML edition by CentOS + Tomcat + MySQL + Grails &#171; Songsterq</title>
		<link>http://www.phpvs.net/articles/blakes-centos-lamp-server-guide-single-page/comment-page-1/#comment-41123</link>
		<dc:creator>CentOS + Tomcat + MySQL + Grails &#171; Songsterq</dc:creator>
		<pubDate>Thu, 12 Aug 2010 19:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/articles/blakes-centos-lamp-server-set-up-guide/blakes-centos-lamp-server-set-up-guide-single-page-html-edition/#comment-41123</guid>
		<description>[...] simple, download the ISO images and follow Section 2 of Blake&#8217;s CentOS LAMP Server Guide to get it installed and configured. I also get VirtualBox Additions installed so I don&#8217;t have [...]</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background-color: #FFCD71;">
<p>[...] simple, download the ISO images and follow Section 2 of Blake&#039;s CentOS LAMP Server Guide to get it installed and configured. I also get VirtualBox Additions installed so I don&#039;t have [...]</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ten PHP Best Practices Tips that will get you a job by Braeden Petruk</title>
		<link>http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/comment-page-3/#comment-41066</link>
		<dc:creator>Braeden Petruk</dc:creator>
		<pubDate>Wed, 11 Aug 2010 20:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/#comment-41066</guid>
		<description>Great article. However, there is an error in your section about loops.

Using count($array) inside a for() statement will actually only execute the count function once, thus rendering a pre-defined variable quite useless.

for() evaluates the three parameters in full before looping through the code between the braces, so it doesn&#039;t matter how you pass the data to the construct. You could use return variables from functions for all three parameters without impeding performance.</description>
		<content:encoded><![CDATA[<p>Great article. However, there is an error in your section about loops.</p>
<p>Using count($array) inside a for() statement will actually only execute the count function once, thus rendering a pre-defined variable quite useless.</p>
<p>for() evaluates the three parameters in full before looping through the code between the braces, so it doesn&#039;t matter how you pass the data to the construct. You could use return variables from functions for all three parameters without impeding performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ten PHP Best Practices Tips that will get you a job by fuxximus</title>
		<link>http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/comment-page-3/#comment-40739</link>
		<dc:creator>fuxximus</dc:creator>
		<pubDate>Wed, 04 Aug 2010 02:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/#comment-40739</guid>
		<description>i&#039;ve read your article, having played around with PHP for the last 5 years, i can&#039;t agree with you more, i just think most are gimmicks. I personally pay attention to all of the things you mentioned, and it annoys me to hell when people i work with don&#039;t consider as important.</description>
		<content:encoded><![CDATA[<p>i&#039;ve read your article, having played around with PHP for the last 5 years, i can&#039;t agree with you more, i just think most are gimmicks. I personally pay attention to all of the things you mentioned, and it annoys me to hell when people i work with don&#039;t consider as important.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ten PHP Best Practices Tips that will get you a job by muhkuh</title>
		<link>http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/comment-page-3/#comment-40379</link>
		<dc:creator>muhkuh</dc:creator>
		<pubDate>Tue, 27 Jul 2010 19:58:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/2008/06/04/ten-php-best-practices-tips-that-will-get-you-a-job/#comment-40379</guid>
		<description>Ah the myth about single quotes that are faster than double quotes. Have you profiled the code?

It WAS true with php 3 and early versions of php 4 but please stop to spread these myth!

The article is good but when you say things like &quot;use feature X instead of Y because it is faster!&quot; then please proof it!

Anyway I totaly agree with regex functions versus standard string functions. As long as you don&#039;t check the format of an input use standard string functions. And when you want to check the format of input consider the filter functions before you consider regexes!

I agree also to nuno costa. Don&#039;t overcomment the code only document the code that needs it (Like a algorithm) and document you classes/functions. But I think thats what you&#039;ve meant.</description>
		<content:encoded><![CDATA[<p>Ah the myth about single quotes that are faster than double quotes. Have you profiled the code?</p>
<p>It WAS true with php 3 and early versions of php 4 but please stop to spread these myth!</p>
<p>The article is good but when you say things like &#034;use feature X instead of Y because it is faster!&#034; then please proof it!</p>
<p>Anyway I totaly agree with regex functions versus standard string functions. As long as you don&#039;t check the format of an input use standard string functions. And when you want to check the format of input consider the filter functions before you consider regexes!</p>
<p>I agree also to nuno costa. Don&#039;t overcomment the code only document the code that needs it (Like a algorithm) and document you classes/functions. But I think thats what you&#039;ve meant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.Net MVC &#8211; How to route to images or other file types by Erwin1441</title>
		<link>http://www.phpvs.net/2009/08/06/aspnet-mvc-how-to-route-to-images-or-other-file-types/comment-page-1/#comment-40210</link>
		<dc:creator>Erwin1441</dc:creator>
		<pubDate>Fri, 23 Jul 2010 11:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/?p=123#comment-40210</guid>
		<description>I managed to solve this problem by writing an ImageHelper class and access my images like this:

&lt;img src=&quot;&quot; alt=&quot;&quot;&gt;

My class looks like this:

    public static class ImageHelper
    {
        public static string ImgUrl(string applicationPath, string filename)
        {
            if (applicationPath == &quot;/&quot;)
            {
                return &quot;/Images/&quot; + filename;
            }
            else
            {
                return applicationPath + &quot;/Images/&quot; + filename;
            }
        }
    }</description>
		<content:encoded><![CDATA[<p>I managed to solve this problem by writing an ImageHelper class and access my images like this:</p>
<p>&lt;img src=&quot;&#034; alt=&#034;"&gt;</p>
<p>My class looks like this:</p>
<p>    public static class ImageHelper<br />
    {<br />
        public static string ImgUrl(string applicationPath, string filename)<br />
        {<br />
            if (applicationPath == &#034;/&#034;)<br />
            {<br />
                return &#034;/Images/&#034; + filename;<br />
            }<br />
            else<br />
            {<br />
                return applicationPath + &#034;/Images/&#034; + filename;<br />
            }<br />
        }<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.Net MVC &#8211; How to route to images or other file types by Erwin1441</title>
		<link>http://www.phpvs.net/2009/08/06/aspnet-mvc-how-to-route-to-images-or-other-file-types/comment-page-1/#comment-39870</link>
		<dc:creator>Erwin1441</dc:creator>
		<pubDate>Thu, 15 Jul 2010 16:04:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/?p=123#comment-39870</guid>
		<description>Hi morgan,

Thanks for this great guide! It&#039;s been most helpful. I&#039;ve got everything to work fine in my local test environment where my application runs in the root of the development webserver.

I&#039;m having a problem however when uploading my application to my production server, where the application resides within a subdir of the root. How am I supposed to acces my images in this way?

Kind regards,
Erwin</description>
		<content:encoded><![CDATA[<p>Hi morgan,</p>
<p>Thanks for this great guide! It&#039;s been most helpful. I&#039;ve got everything to work fine in my local test environment where my application runs in the root of the development webserver.</p>
<p>I&#039;m having a problem however when uploading my application to my production server, where the application resides within a subdir of the root. How am I supposed to acces my images in this way?</p>
<p>Kind regards,<br />
Erwin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Manually validate an ASP.Net MVC form on the client side with MicrosoftMvcValidation.js and jQuery by Morgan</title>
		<link>http://www.phpvs.net/2010/04/26/manually-validate-an-asp-net-mvc-form-on-the-client-side-with-microsoftmvcvalidation-js-and-jquery/comment-page-1/#comment-38948</link>
		<dc:creator>Morgan</dc:creator>
		<pubDate>Thu, 01 Jul 2010 05:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/?p=196#comment-38948</guid>
		<description>@Morten Christiansen - thanks for pointing this out!  If I had gone just a bit farther with my explorations, I would have found this much better solution.

Relying on &quot;internal&quot; javascript variables (classically differentiated by beginning with underscores) is of course never recommended - but using this method will perhaps survive an upgrade, whereas my original method would always require you to re-implement it when you got a new version of the script. 

I&#039;ll update the post with this.</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background-color: #FFCD71;">
<p>@Morten Christiansen &#8211; thanks for pointing this out!  If I had gone just a bit farther with my explorations, I would have found this much better solution.</p>
<p>Relying on &#034;internal&#034; javascript variables (classically differentiated by beginning with underscores) is of course never recommended &#8211; but using this method will perhaps survive an upgrade, whereas my original method would always require you to re-implement it when you got a new version of the script. </p>
<p>I&#039;ll update the post with this.</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Manually validate an ASP.Net MVC form on the client side with MicrosoftMvcValidation.js and jQuery by Alexandre Salsinha</title>
		<link>http://www.phpvs.net/2010/04/26/manually-validate-an-asp-net-mvc-form-on-the-client-side-with-microsoftmvcvalidation-js-and-jquery/comment-page-1/#comment-38947</link>
		<dc:creator>Alexandre Salsinha</dc:creator>
		<pubDate>Thu, 01 Jul 2010 02:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpvs.net/?p=196#comment-38947</guid>
		<description>var f = $(&quot;#formId&quot;);
var context1 = f[0][&#039;__MVC_FormValidation&#039;];
var errors;
if (context1) {
    errors = context1.validate(&quot;submit&quot;);        // Validate the form
}
if (!context1 &#124;&#124; errors.length == 0) {
    $.ajax(
                    {
                        type: &quot;POST&quot;,
                        url: f.attr(&quot;action&quot;),
                        data: f.serialize(),
                        dataType: &quot;json&quot;,
                        success: function (result) {
                            var domElement = $(result.Html);
                            $(&quot;#elementToUpdateId&quot;).replaceWith(domElement);
                        }
                    });
}




This worked nicely for me. Thanks for your help.</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background-color: #FFCD71;">
<p>var f = $(&#034;#formId&#034;);<br />
var context1 = f[0]['__MVC_FormValidation'];<br />
var errors;<br />
if (context1) {<br />
    errors = context1.validate(&#034;submit&#034;);        // Validate the form<br />
}<br />
if (!context1 || errors.length == 0) {<br />
    $.ajax(<br />
                    {<br />
                        type: &#034;POST&#034;,<br />
                        url: f.attr(&#034;action&#034;),<br />
                        data: f.serialize(),<br />
                        dataType: &#034;json&#034;,<br />
                        success: function (result) {<br />
                            var domElement = $(result.Html);<br />
                            $(&#034;#elementToUpdateId&#034;).replaceWith(domElement);<br />
                        }<br />
                    });<br />
}</p>
<p>This worked nicely for me. Thanks for your help.</p>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>
