<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 20 Jun 2013 03:47:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Speed up page page load combining javascript files with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15937</guid>
      <link>http://www.phpdeveloper.org/news/15937</link>
      <description><![CDATA[<p>
<i>Gonzalo Ayuso</i> has a <a href="http://gonzalo123.wordpress.com/2011/02/21/speed-up-page-page-load-combining-javascript-files-with-php/">handy performance tip</a> for getting that little bit extra speed from your page load times - combining Javascript with PHP files.
</p>
<blockquote>
One of the golden rules when we want a high performance web site is minimize the HTTP requests. Normally we have several JavaScript files within our projects. It's a very good practice to combine all our JavaScript files into an only one file. [...] But if your project is alive and you are changing it, it's helpful to spare your JavaScript files between several files. [...]  So we need to choose between high performance and development comfort.
</blockquote>
<p>
He includes a quick script that runs through your javascript directory (recursively), grabs all of the javascript content from each, combines and minifies them to serve gzip compressed out to the browser.
</p>]]></description>
      <pubDate>Mon, 21 Feb 2011 13:01:54 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Wojciech Sznapka's Blog: Power of PHP streams - decompress gz archives on the fly from remote server]]></title>
      <guid>http://www.phpdeveloper.org/news/15482</guid>
      <link>http://www.phpdeveloper.org/news/15482</link>
      <description><![CDATA[<p>
<i>Wojciech Sznapka</i> has <a href="http://blog.sznapka.pl/power-of-the-php-streams-decompress-gz-archives-on-the-fly-from-remote-server/">a new post to his blog</a> today looking at the "power of PHP streams" and how they can be used to decompress gzipped data from remote servers.
</p>
<blockquote>
Probably most of us heard about streams in PHP. They are background of all files and network operations in PHP, even if we don't see it. Everytime when you use file_get_contents or fopen you are actually using streams. But there are many stream wrappers I haven't used, because they aren't well known.One of them is compress.zlib (and two other <a href="http://www.php.net/manual/en/wrappers.compression.php">compression stream filters</a>). 
</blockquote>
<p>
He includes a quick example (because, thankfully, that's all working with streams like this usually requires) about pulling in a file from his server and uses the stream to fetch and unzip the data to display the contents.
</p>]]></description>
      <pubDate>Wed, 24 Nov 2010 08:39:05 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert's Blog: More about Performance Tuning]]></title>
      <guid>http://www.phpdeveloper.org/news/9566</guid>
      <link>http://www.phpdeveloper.org/news/9566</link>
      <description><![CDATA[<p>
Based off of a <a href="http://www.phpdeveloper.org/news/9538">previous article</a> from <i>Mike Willbanks</i>, <i>Stuart Herbert</i> has posted some of his <a href="http://blog.stuartherbert.com/php/2008/01/31/more-about-performance-tuning/">own thoughts</a> on tuning and tweaking your applications for the best performance you can get out of them.
</p>
<blockquote>
There's some good advice in there, and I thought it'd be a good idea to quickly add a bit more detail about the separate approaches that Mike raises.
</blockquote>
<p>
He <a href="http://blog.stuartherbert.com/php/2008/01/31/more-about-performance-tuning/">goes over</a> the APC caching, memcache, the "gzip trick", the "Not Modified" header and optimized SQL statements.
</p>
<p>
He also mentions one thing that <i>Mike</i> didn't mention - a split between static files (no PHP needed) and their dynamic cousins. Having a more pure Apache (no PHP installed) can help give a minute jump in speed that, depending on the size of the site, could really add up from a user's perspective.
</p>]]></description>
      <pubDate>Tue, 05 Feb 2008 07:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Leon Chevalier's Blog: Improve website load time by 500% with 3 lines of code]]></title>
      <guid>http://www.phpdeveloper.org/news/9477</guid>
      <link>http://www.phpdeveloper.org/news/9477</link>
      <description><![CDATA[<p>
<i>Leon Chevalier</i> has <a href="http://aciddrop.com/2008/01/21/boost-your-website-load-time-with-3-lines-of-code/">posted about a class</a> he's developed (you can download it <a href="http://aciddrop.com/2008/01/23/site-speed-boost-script-updated/">here</a>) that can help to speed up the load times for your site.
</p>
<blockquote>
There are 4 relatively easy ways by which you can speed up the time it takes a browser to download a page. Following on from my post on <a href="http://aciddrop.com/2008/01/03/automatically-join-your-javascript-and-css-into-a-single-file/">joining CSS and JavaScript files</a>, I have written a PHP script which will automatically do all of the above.
</blockquote>
<p>
He <a href="http://aciddrop.com/2008/01/21/boost-your-website-load-time-with-3-lines-of-code/">gives example code</a> of the class in action and includes some screenshots of the benchmarks from the <a href="http://developer.yahoo.com/yslow/">YSlow</a> Firefox extension showing the improvements.
</p>]]></description>
      <pubDate>Wed, 23 Jan 2008 12:09:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[JBLabs Blog:  How to create a zip archive using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8172</guid>
      <link>http://www.phpdeveloper.org/news/8172</link>
      <description><![CDATA[<p>
On the JSLabs blog today, there's a <a href="http://www.whenpenguinsattack.com/2007/07/03/how-to-create-a-zip-archive-using-php/">(short) new tutorial</a> showing an alternate method to creating a Zip archive in PHP (rather than with <a href="http://us2.php.net/zip">the zip extension</a>).
</p>
<p>
He illustrates the creation of <a href="http://www.whenpenguinsattack.com/2007/07/03/how-to-create-a-zip-archive-using-php/">simple archive</a> that pulls in a test file from a given path. This is then pushed into the zip archive and packed down and exported. He also notes the different compression levels that it can be created with - no compression, bzipped and gzipped.
</p>
<p>
You can <a href="http://www.whenpenguinsattack.com/DownloadFiles/ziplib.zip">download the library here</a>.
</p>]]></description>
      <pubDate>Tue, 03 Jul 2007 11:08:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[JSLabs Blog:  5 tips for creating high performance web apps]]></title>
      <guid>http://www.phpdeveloper.org/news/7246</guid>
      <link>http://www.phpdeveloper.org/news/7246</link>
      <description><![CDATA[<p>
In <a href="http://www.whenpenguinsattack.com/2007/02/08/5-tips-for-creating-high-performance-web-apps/">this new post</a>, <i>Justin Silverton</i> shares a few helpful hints for creating high performance applications in PHP:
<ul>
<li>use multi resultset queries to your database rather than many small ones
<li>page/object caching
<li>gzip compression
<li>tune your web server
<li>Don't save performance testing for the end of the project
</ul>
Each of the items has explanation and links to more details on them (including links to three difference object caching applications - ion cube, alternative PHP cache, turck MMCache).
</p>]]></description>
      <pubDate>Thu, 08 Feb 2007 12:32:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: 5.2.1 RC3 Released for testing]]></title>
      <guid>http://www.phpdeveloper.org/news/7128</guid>
      <link>http://www.phpdeveloper.org/news/7128</link>
      <description><![CDATA[<p>
<i>Ilia Alshanetsky</i> has <a href="http://ilia.ws/archives/156-5.2.1-RC3-Released-for-testing.html">posted the announcement</a> about the release of the latest Release Candidate for the upcoming PHP 5.2.x series - PHP 5.2.1 RC3.
</p>
<blockquote>
Since the last release, there are over 20 different bug fixes resolving some annoying engine issues such as the tempval leak inside foreach(). We do not anticipate any regressions to be introduced by this RC, but I would still like to ask everyone to take a few minutes and test it against their code base. If you come across any issues please report them at <a href="http://bugs.php.net/">http://bugs.php.net/</a>.
</blockquote>
<p>
You can download these latest files here:
<ul>
<li><a href="http://downloads.php.net/ilia/php-5.2.1RC3.tar.bz2">Bzipped version</a>
<li><a href="http://downloads.php.net/ilia/php-5.2.1RC3.tar.gz">Gzipped version</a>
</ul>
Depending on how stable things run with this release, it might be the last Release Candidate for the series. A final release might be coming soon - so get out there and run those tests!
</p>]]></description>
      <pubDate>Fri, 19 Jan 2007 07:16:46 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ThinkingPHP: Issues with output buffering in CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5803</guid>
      <link>http://www.phpdeveloper.org/news/5803</link>
      <description><![CDATA[<p>
If you're using the CakePHP framework and are having a problem with output buffering, <a href="http://www.thinkingphp.org/2006/07/16/issues-with-output-buffering-in-cakephp/">this quick tip</a> on the ThinkingPHP blog might work for you.
</p>
<blockquote>
<p>
Output buffering is a useful way to accomblish things in php like gzipping all html output and such. A while ago I wrote about it on this blog (see "A miracle called gzip") as well.
</p>
<p>
The reason I write about it again is, that I have discovered a little issue with it in CakePHP. 
</p>
</blockquote>
<p>
He <a href="http://www.thinkingphp.org/2006/07/16/issues-with-output-buffering-in-cakephp/">notes</a> that if you just use the ob_start with the gzip handler, debug issues arise. The soultion he's come up with, though, isn't quite as simple, but gets the job done in about ten lines and is easy to drop in anywhere.
</p>]]></description>
      <pubDate>Mon, 17 Jul 2006 06:13:16 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: An Object-based Approach to HTTP Compression in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/5189</guid>
      <link>http://www.phpdeveloper.org/news/5189</link>
      <description><![CDATA[<p>
DevShed has posted <a href="http://www.devshed.com/c/a/PHP/An-Objectbased-Approach-to-HTTP-Compression-in-PHP/">part two</a> of their series on speeding up your page load times with HTTP compression, this time looking at a more object-oriented approach to handling the data you want to compress.
</p>
<quote>
<i>
<p>
Over the <a href="http://www.phpdeveloper.org/news/5147">first tutorial</a> of this series, I developed some hands-on examples, aimed at illustrating how "Gzip" encoding can be used within PHP scripts to compress the output generated by dynamic PHP pages. After transferring the encoded data to the client, contents are uncompressed and finally displayed on the browser.
</p>
<p>
By the end of this article, you should have the appropriate knowledge for building a simple data compressor class, in addition to using HTTP compression for reducing the download time of object-generated web pages.
</p>
</i>
</quote>
<p>
They start with the creation of a simple <a href="http://www.devshed.com/c/a/PHP/An-Objectbased-Approach-to-HTTP-Compression-in-PHP/1/">data compression class</a>, with functions to see if the browser supports gzip encoding and to get/send/compress the actual data. With the sample class created, they put it to the test with a more real-world example - echoing out user information from a MySQL database.
</p>]]></description>
      <pubDate>Mon, 17 Apr 2006 13:06:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPit.net: Having fun with PHP's output buffer]]></title>
      <guid>http://www.phpdeveloper.org/news/5186</guid>
      <link>http://www.phpdeveloper.org/news/5186</link>
      <description><![CDATA[<p>
One of the more powerful and handy features that PHP offers is output buffering. It allows you more control over when the client's browser gets the information instead of just spewing information at random. It is a little tricky to get the hang of, so PHPit.net has put together <a href="http://www.phpit.net/article/output-buffer-fun-php/">this new tutorial</a> on how to get started.
</p>
<quote>
<i>
<p>
I'm sure most of us have come across the dreaded "Cannot modify header information - headers already sent", and this is usually caused when your script tries to send a header or set a cookie, when it's already sent output. The easiest fix is to make sure no output has been sent, but it's also possible to enable something called output buffering which also solves the problem.
</p>
<p>
In this article I'll first show you how output buffering works, and take you through most of its basic functions. After that we'll have a look at what's possible with output buffering, and show you some neat tricks.
</p>
</i>
</quote>
<p>
The <a href="http://www.phpit.net/article/output-buffer-fun-php/">groundwork</a> is laid first, giving a simple "Hello world" example to show how the code flows. They show how the buffering system works and how to use a callback function to modify the contents of the buffer before outputting (including a full replace function to text within the buffer from an array). They follow that with a look at creating your own HTML tags and using the gzip compression functionality to speed up your pages. 
</p>]]></description>
      <pubDate>Mon, 17 Apr 2006 07:13:24 -0500</pubDate>
    </item>
  </channel>
</rss>
