<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>PHP-Scripts Blog &#187; Optimization</title>
	<link>http://www.php-scripts.com</link>
	<description>Writing about PHP scripting since 12/99. Learn something new every day.</description>
	<pubDate>Thu, 09 Oct 2008 14:17:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>41 PHP optimization tips</title>
		<link>http://www.php-scripts.com/20071015/107/</link>
		<comments>http://www.php-scripts.com/20071015/107/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 19:08:40 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Optimization]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/20071015/107/</guid>
		<description><![CDATA[As with any tips for optimization, it&#8217;s best advised to benchmark your code first rather than just start hacking and slashing your code. With that said and understood, I enjoy reading articles for better optimizing PHP code and came across this one from reinholdweber with 40 tips + 1 bonus tip that looks pretty good. [...]]]></description>
			<content:encoded><![CDATA[<p>As with any tips for optimization, it&#8217;s best advised to benchmark your code first rather than just start hacking and slashing your code. With that said and understood, I enjoy reading articles for better optimizing PHP code and came across this one from <a href="http://reinholdweber.com/?p=3">reinholdweber</a> with 40 tips + 1 bonus tip that looks pretty good. These items stuck out to me, but haven&#8217;t directly benchmarked all of them (yet, but I will be checking the ones I didn&#8217;t already learn) them to test:<br />
<blockquote>12. Error suppression with @ is very slow.<br />
13. $row[’id’] is 7 times faster than $row[id]<br />
25. When echoing strings it&#8217;s faster to separate them by comma instead of dot. Note: This only works with echo, which is a function that can take several strings as arguments.<br />
32. Learn to love the <a href="http://us3.php.net/language.operators.comparison#language.operators.comparison.ternary">ternary operator</a>.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20071015/107/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tips for speeding up your PHP scripts</title>
		<link>http://www.php-scripts.com/20061207/96/</link>
		<comments>http://www.php-scripts.com/20061207/96/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 14:49:15 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[How To]]></category>

		<category><![CDATA[Optimization]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/20061207/96/</guid>
		<description><![CDATA[Jaslabs shares six key points on improving the speed of your dynamic PHP scripts including: object code caching, template system, distributed object caching system, turning off some global PHP variable settings, output compression and database query optimization.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.whenpenguinsattack.com/2006/08/14/using-php-in-large-websites-redone/?artid=134">Jaslabs shares</a> six key points on improving the speed of your dynamic PHP scripts including: object code caching, template system, distributed object caching system, turning off some global PHP variable settings, output compression and database query optimization.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20061207/96/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Turck MMCache and PHP encoder</title>
		<link>http://www.php-scripts.com/20050930/29/</link>
		<comments>http://www.php-scripts.com/20050930/29/#comments</comments>
		<pubDate>Fri, 30 Sep 2005 13:59:20 +0000</pubDate>
		<dc:creator>TDavid</dc:creator>
		
		<category><![CDATA[Optimization]]></category>

		<category><![CDATA[Encoding]]></category>

		<category><![CDATA[PHP 4.x]]></category>

		<guid isPermaLink="false">http://www.php-scripts.com/?p=29</guid>
		<description><![CDATA[I&#8217;m not sure how current or updated this is because I found some broken project links (all links below work) but these projects seem promising and worth closer inspection, especially if one is looking to make their PHP scripts run faster.
Turck MMcache:
&#8230; a free open source PHP accelerator, optimizer, encoder and dynamic content cache for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure how current or updated this is because I found some broken project links (all links below work) but these projects seem promising and worth closer inspection, especially if one is looking to make their PHP scripts run faster.</p>
<p><a href="http://turck-mmcache.sourceforge.net/index_old.html">Turck MMcache</a>:<br />
<blockquote>&#8230; a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. Also it uses some optimizations to speed up execution of PHP scripts. Turck MMCache typically reduces server load and increases the speed of your PHP code by 1-10 times.</p></blockquote>
<p>Jason Sheets created http://phpcoder.sourceforge.net/ - PHPCoder - which is a GUI front end to the Turck MMCache Encoder which allows encoding of PHP files and the following options: Expire scripts aftter a certain amount of time, restrict server IP, restrict server name and restrict visitor IP. PHP Coder is distributed under the <a href="http://www.opensource.org/licenses/bsd-license.php">BSD License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.php-scripts.com/20050930/29/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
