<?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: 10 Performance Tips to Speed Up PHP</title>
	<atom:link href="http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/</link>
	<description>Valuable Insights for Better Websites</description>
	<lastBuildDate>Wed, 14 Sep 2011 16:57:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: PHPのスピードの向上 &#171; Layer8 Tech</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-3482</link>
		<dc:creator>PHPのスピードの向上 &#171; Layer8 Tech</dc:creator>
		<pubDate>Sun, 21 Nov 2010 05:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-3482</guid>
		<description>[...] Stephen Ward は 効率的なPHPの書き方を示してくれます。. &#8220;echoの代わりにprint()う&#8221; や &#8220;二重引用符の代わりに一重の引用符を使う&#8221; などのアドバイスです。　しかし　他の方がコメントで述べられているように、これらのアドバイスは古くて、おそらくキャシュのの最適化によって意味のないものになっているでしょう。   Tweet [...]</description>
		<content:encoded><![CDATA[<p>[...] Stephen Ward は 効率的なPHPの書き方を示してくれます。. &#8220;echoの代わりにprint()う&#8221; や &#8220;二重引用符の代わりに一重の引用符を使う&#8221; などのアドバイスです。　しかし　他の方がコメントで述べられているように、これらのアドバイスは古くて、おそらくキャシュのの最適化によって意味のないものになっているでしょう。   Tweet [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Speeding up your PHP code &#171; KNDB Inc</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-2706</link>
		<dc:creator>Speeding up your PHP code &#171; KNDB Inc</dc:creator>
		<pubDate>Wed, 20 Oct 2010 13:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-2706</guid>
		<description>[...] Stephen Ward shares how to write efficient code with PHP. He gives advice such as &#8220;Use echo instead of print().&#8221; and &#8220;Ditch double quotes for single quotes.&#8221;. But as pointed out by the commenters, some of these tips are probably outdated or by being taken care of by cache optimizers mentioned early in this article.     Bookmark this on Delicious  Tweet this &#124; technical document &#124; October 20, 2010 at 10:17 pm       website renewal &#187;       Tagsphp Categories [...]</description>
		<content:encoded><![CDATA[<p>[...] Stephen Ward shares how to write efficient code with PHP. He gives advice such as &#8220;Use echo instead of print().&#8221; and &#8220;Ditch double quotes for single quotes.&#8221;. But as pointed out by the commenters, some of these tips are probably outdated or by being taken care of by cache optimizers mentioned early in this article.     Bookmark this on Delicious  Tweet this | technical document | October 20, 2010 at 10:17 pm       website renewal &raquo;       Tagsphp Categories [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-1452</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Fri, 04 Jun 2010 07:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-1452</guid>
		<description>Thanks for testing, PERECil.  Some of these tips may very well be dated compared to the latest versions of PHP.  I know there&#039;s a lot of debate about single versus double quotes, which is why I included that tip at the end where other guides may have included it at the beginning.  Out of curiosity, did you test the others, and, if so, how did they pan out?</description>
		<content:encoded><![CDATA[<p>Thanks for testing, PERECil.  Some of these tips may very well be dated compared to the latest versions of PHP.  I know there&#8217;s a lot of debate about single versus double quotes, which is why I included that tip at the end where other guides may have included it at the beginning.  Out of curiosity, did you test the others, and, if so, how did they pan out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Ward</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-1197</link>
		<dc:creator>Stephen Ward</dc:creator>
		<pubDate>Mon, 15 Feb 2010 17:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-1197</guid>
		<description>Without knowing more about your setup, Texx, I can&#039;t say for sure, but my gut tells me that moving your included information into a database and pulling it out with a query would vastly simplify things for you.  For example, you might set up a MySQL database, propagate it with your pricing information, and pull the data into a $prices array with something simple like this:

&lt;code&gt;&lt;?php
mysql_connect(&#039;hostname&#039;, &#039;username&#039;, &#039;password&#039;);
mysql_select_db(&#039;decking_prices_db&#039;);
$prices = mysql_query(&quot;SELECT product_id, price FROM decking_prices&quot;);
$price = array();
while ($price_data = mysql_fetch_object($prices)){
	$price[$price_data-&gt;product_id] = $price_data-&gt;price;
}
mysql_close();
?&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Without knowing more about your setup, Texx, I can&#8217;t say for sure, but my gut tells me that moving your included information into a database and pulling it out with a query would vastly simplify things for you.  For example, you might set up a MySQL database, propagate it with your pricing information, and pull the data into a $prices array with something simple like this:</p>
<p><code>&lt;?php<br />
mysql_connect('hostname', 'username', 'password');<br />
mysql_select_db('decking_prices_db');<br />
$prices = mysql_query("SELECT product_id, price FROM decking_prices");<br />
$price = array();<br />
while ($price_data = mysql_fetch_object($prices)){<br />
	$price[$price_data-&gt;product_id] = $price_data-&gt;price;<br />
}<br />
mysql_close();<br />
?&gt;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: texxs</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-1178</link>
		<dc:creator>texxs</dc:creator>
		<pubDate>Fri, 12 Feb 2010 19:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-1178</guid>
		<description>Any tips for speeding up the initial load (caching won&#039;t help here, I believe), that has a whole bunch of very tiny (like 8 characters long) includes?
http://decksanfrancisco.com/prices/san-francisco-decking-prices.php is what I&#039;m talking about.  Each individual price (not the image, nor the description) is a php include.</description>
		<content:encoded><![CDATA[<p>Any tips for speeding up the initial load (caching won&#8217;t help here, I believe), that has a whole bunch of very tiny (like 8 characters long) includes?<br />
<a href="http://decksanfrancisco.com/prices/san-francisco-decking-prices.php" rel="nofollow">http://decksanfrancisco.com/prices/san-francisco-decking-prices.php</a> is what I&#8217;m talking about.  Each individual price (not the image, nor the description) is a php include.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly Link Roundup – 2009-11-29 &#124; Unemployed Developer</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-993</link>
		<dc:creator>Weekly Link Roundup – 2009-11-29 &#124; Unemployed Developer</dc:creator>
		<pubDate>Mon, 30 Nov 2009 06:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-993</guid>
		<description>[...] I like to read about these performance tips even though I know and do my best to practice them in my code. I think it&#8217;s important to always ensure your code not only works but works efficiently.. Read More [...]</description>
		<content:encoded><![CDATA[<p>[...] I like to read about these performance tips even though I know and do my best to practice them in my code. I think it&#8217;s important to always ensure your code not only works but works efficiently.. Read More [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-887</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sun, 23 Aug 2009 11:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-887</guid>
		<description>Re point 7, needlessly copying variables. Using $_POST[&#039;somevariable&#039;] over say $somevar = $_POST[&#039;somevariable&#039;] and then accessing $somevar many times is much slower than just using $somevar. PHP has to lookup the name in the POST array each time.</description>
		<content:encoded><![CDATA[<p>Re point 7, needlessly copying variables. Using $_POST['somevariable'] over say $somevar = $_POST['somevariable'] and then accessing $somevar many times is much slower than just using $somevar. PHP has to lookup the name in the POST array each time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Ward</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-863</link>
		<dc:creator>Stephen Ward</dc:creator>
		<pubDate>Wed, 15 Jul 2009 15:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-863</guid>
		<description>Thanks for testing, PERECil.  Some of these tips may very well be dated compared to the latest versions of PHP.  I know there&#039;s a lot of debate about single versus double quotes, which is why I included that tip at the end where other guides may have included it at the beginning.  Out of curiosity, did you test the others, and, if so, how did they pan out?</description>
		<content:encoded><![CDATA[<p>Thanks for testing, PERECil.  Some of these tips may very well be dated compared to the latest versions of PHP.  I know there&#8217;s a lot of debate about single versus double quotes, which is why I included that tip at the end where other guides may have included it at the beginning.  Out of curiosity, did you test the others, and, if so, how did they pan out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PERECil</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-862</link>
		<dc:creator>PERECil</dc:creator>
		<pubDate>Wed, 15 Jul 2009 15:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-862</guid>
		<description>Hello, 

Just some notices after some tests:

4. Didn&#039;t see any difference when switching from (include&#124;require)_once to (include&#124;require). Tested on a test website with more than 20-30 requires.

10. Tested in a for loop, i didn&#039;t get any difference.

My tests were done with php 5.2+</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>Just some notices after some tests:</p>
<p>4. Didn&#8217;t see any difference when switching from (include|require)_once to (include|require). Tested on a test website with more than 20-30 requires.</p>
<p>10. Tested in a for loop, i didn&#8217;t get any difference.</p>
<p>My tests were done with php 5.2+</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Ward</title>
		<link>http://www.wardontheweb.com/10-performance-tips-to-speed-up-php/comment-page-1/#comment-861</link>
		<dc:creator>Stephen Ward</dc:creator>
		<pubDate>Mon, 13 Jul 2009 11:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.wardontheweb.com/?p=339#comment-861</guid>
		<description>Glad you liked them, Mark. :)</description>
		<content:encoded><![CDATA[<p>Glad you liked them, Mark. <img src='http://www.wardontheweb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

