<?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>Sun, 26 May 2013 04:37:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Symfony Blog: Static Page Caching & Payment Validators in Symfony 2.2]]></title>
      <guid>http://www.phpdeveloper.org/news/18880</guid>
      <link>http://www.phpdeveloper.org/news/18880</link>
      <description><![CDATA[<p>
On the Symfony blog, there's two new posts highlighting some recent improvements to the Symfony2 framework - the addition of static page caching and payment validators:
</p>
<ul>
<li><a href="http://symfony.com/blog/new-in-symfony-2-2-cache-support-for-static-pages">Static page caching</a> support in the routing configuration
<li><a href="http://symfony.com/blog/new-in-symfony-2-2-payment-related-validators">Payment validators</a> with docblock assertions, including error messages for failures.
</ul>
<p>
These features are all a part of the upcoming Symfony 2.2 release that's <a href="http://symfony.com/blog/symfony-2-2-release-schedule">planned</a> to be moved in the "stabilization" status in early 2013. It should be able two months following that when the stable version will be released.
</p>]]></description>
      <pubDate>Wed, 12 Dec 2012 11:46:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney: Zend Server, ZF2, and Page Caching]]></title>
      <guid>http://www.phpdeveloper.org/news/18703</guid>
      <link>http://www.phpdeveloper.org/news/18703</link>
      <description><![CDATA[If you're considering using <a href="http://zend.com/server">Zend Server</a> in your development, you might find <a href="http://mwop.net/blog/2012-11-05-zend-server-caching.html">this new post</a> from <i>Matthew Weier O'Phinney</i> interesting. It talks about a handy feature of the tool and how it can help with the performance of a Zend Framework 2-based application.
</p>
<blockquote>
Zend Server has a very cool <a href="http://www.youtube.com/watch_v=i2XXn2SA5zM.html">Page Caching feature</a>. Basically, you can provide URLs or URL regular expressions, and tell Zend Server to provide full-page caching of those pages. This can provide a tremendous performance boost, without needing to change anything in your application structure; simply enable it for a set of pages, and sit back and relax. [...] However, this feature is not entirely straight-forward when using a framework that provides its own routing, such as ZF2. The reason is because it assumes by default that each match maps to a specific file on the filesystem, and prepares the caching based on the actual file it hits.
</blockquote>
<p>
Since configuration is mostly done through Server's web interface, this could be a problem. Thankfully, he shows you another setting that allows you to cache multiple versions of pages based on parameters you define. Using this and a setting of "_SERVER" with a value of "[REQUEST_URI]" you should be good to go.
</p>]]></description>
      <pubDate>Tue, 06 Nov 2012 10:53:56 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Zend Framework full page cache tips]]></title>
      <guid>http://www.phpdeveloper.org/news/17533</guid>
      <link>http://www.phpdeveloper.org/news/17533</link>
      <description><![CDATA[<p>
If you're looking at using the full-page caching that the Zend Framework has to offer, you should <a href="http://robertbasic.com/blog/zend-framework-full-page-cache-tips">read about Robert Basic's experiences</a> with it before implementing it in your application.
</p>
<blockquote>
When I started rewriting this blog, I knew from start that I want to use Zend Framework's full page caching, as, I think, that's the best cache for this purpose. Not much going on on the front end, much more reads than writes, no ajax or any other "dynamic" content. While implementing the cache, I ran into two issues.
</blockquote>
<p>
His issues revolved around the feature not creating valid cache files due to a duplicate "startSession" call in his code and having the Google Analytics code included in the template (with different keys every time). You can find out more about this functionality <a href="http://framework.zend.com/manual/en/zend.cache.frontends.html#zend.cache.frontends.page">in the Zend Framework manual</a>. 
</p>]]></description>
      <pubDate>Mon, 13 Feb 2012 11:45:10 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tutorialzine.com: Creating a PHP and CSS3 Powered About Page]]></title>
      <guid>http://www.phpdeveloper.org/news/16587</guid>
      <link>http://www.phpdeveloper.org/news/16587</link>
      <description><![CDATA[<p>
In <a href="http://tutorialzine.com/2011/07/about-page-vcard-php-css/">this new tutorial</a> from Tutorialzine.com, <i>Martin Angelov</i> shows you how to combine a bit of PHP, CSS3 and HTML to create a more functional "About" page for your site that shares contact information in multiple formats.
</p>
<blockquote>
In this tutorial, we will be creating a simple about page that is powered by PHP, HTML5 and CSS3. It will present your contact information to your visitors, with an option for downloading it as a vCard (useful for importing it in third party applications). You can use today's example as a placeholder for your upcoming personal website, or as an actual about page.
</blockquote>
<p>
He includes all of the code, markup and styling you'll need to get it put together. The PHP is used to store the contact details and, based on a flag in the GET request (easily modifiable to any other method, like a HTTP header) it returns the basic page, a JSON set or a vcard of the contact data. The page also includes spots for linking to Facebook and Twitter accounts.
</p>]]></description>
      <pubDate>Wed, 13 Jul 2011 12:09:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP.net: PHP Documentation Update]]></title>
      <guid>http://www.phpdeveloper.org/news/16518</guid>
      <link>http://www.phpdeveloper.org/news/16518</link>
      <description><![CDATA[<p>
The PHP documentation team has <a href="http://www.php.net/archive/2011.php#id2011-06-25-1">made a new announcement</a> about some major changes that are happening with the PHP documentation - three interesting new additions to this part of the PHP project.
</p>
<blockquote>
PHP has several [three] new documentation features that the community should be aware of.
</blockquote>
<p>They've introduced the following:</p>
<ul>
<li>PHP manual pages (man pages) - pman - installed via PEAR
<li>An enhanced CHM (Windows help) version of the manual with user notes
<li>The <a href="https://edit.php.net/">Online Documentation Editor</a> allowing edits from anyone.
</ul>]]></description>
      <pubDate>Mon, 27 Jun 2011 08:57:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tom Rawcliffe's Blog: session_start() blocking in php]]></title>
      <guid>http://www.phpdeveloper.org/news/16382</guid>
      <link>http://www.phpdeveloper.org/news/16382</link>
      <description><![CDATA[<p>
<i>Tom Rawcliffe</i> has a new post to his blog talking about an issue he found when trying to optimize a site for his company's systems - a <a href="http://tomrawcliffe.co.uk/blog/2011/04/session_start-blocking-in-php/">problem with the blocking sessions caused</a> when the pages were loaded.
</p>
<blockquote>
Now I didn't know it but is seems that php's session handling is blocking on a per request basis. Kinda makes sense if you think about it, that if two requests simultaneously try and change a session variable then you would get constancy issues. So php handles this by making session_start() a blocking action and will wait for any other request to either finish or close the session using session_write_close().
</blockquote>
<p>
The only reliable fix he found for the issue was to only selectively use the session in certain circumstances (or on certain pages) and closing it out when you were done with it.
</p>]]></description>
      <pubDate>Wed, 25 May 2011 10:46:21 -0500</pubDate>
    </item>
    <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[Konstantin's Blog: Counting Facebook Fans in PHP: The Graph API Way]]></title>
      <guid>http://www.phpdeveloper.org/news/15019</guid>
      <link>http://www.phpdeveloper.org/news/15019</link>
      <description><![CDATA[<p>
In <a href="http://kovshenin.com/archives/counting-facebook-fans-in-php-the-graph-api-way/">a quick new post</a> to his blog <i>Konstantin</i> shows how to get the number of fans for a Facebook page with a quick two line piece of code that uses their Graph API.
</p>
<blockquote>
In a previous blog post called <a href="http://kovshenin.com/archives/how-to-count-facebook-fans-in-php/">How to Count Facebook Fans in PHP</a> I've shown a code snippet of how to count the number of fans on a fan page using PHP. Times have changed, the Graph API has been introduced, and due to some responses I introduce here the new way of retrieving your fans count using the new Graph API and php.
</blockquote>
<p>
He uses the <a href="http://github.com/facebook/php-sdk/">Facebook PHP SDK</a> to make the connection and call the "api()" method on a page (his example is the one for <a href="http://facebook.com/mashable">Mashable</a>) and return back an array that includes the "fan_count" value.
</p>]]></description>
      <pubDate>Wed, 25 Aug 2010 13:06:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Development Blog: 404 Errors: Report, monetize and analyse]]></title>
      <guid>http://www.phpdeveloper.org/news/14647</guid>
      <link>http://www.phpdeveloper.org/news/14647</link>
      <description><![CDATA[<p>
On the Web Development Blog today there's <a href="http://www.web-development-blog.com/archives/404-errors-report-monetize-and-analyse/">a new post about 404 pages</a> and some of the things you can do to make them a bit more useful than just a "not found" message.
</p>
<blockquote>
After your websites getting more pages and links, the chance that a visitor will follow a dead link to your site exists. If a visitor is trying to access a page on your site, the server will report (normally) a 404 error. The response is by default some unfriendly page with some spare information about the error which let most visitors stop visiting your site. But using the 404 error the right way, you the site owner can collect important information.
</blockquote>
<p>
He talks about some of the data that could be collected - what page they were requesting, where they came from, access statistics and more. The tutorial shows you how to harvest some of this information and how to put Google's Search and Adsense tools on the page as well as Google Analytics for tracking.
</p>]]></description>
      <pubDate>Mon, 14 Jun 2010 12:55:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Koopmanschap's Blog: Your error page can be better]]></title>
      <guid>http://www.phpdeveloper.org/news/14485</guid>
      <link>http://www.phpdeveloper.org/news/14485</link>
      <description><![CDATA[<p>
<i>Stefan Koopmanschap</i> has <a href="http://www.leftontheweb.com/message/Your_error_page_can_be_better">shared some of his thoughts</a> on something that a lot of sites could be doing better - making their sites fail gracefully.
</p>
<blockquote>
Error pages. Most people don't really consider error pages when building a website or application. They usually contain some debug information so that when something goes wrong the developer knows what is wrong. But in a lot of cases when an application goes into production, this information is still exposed.
</blockquote>
<p>
He points out a specific example of a recent time when the only thing thrown to the page was an error about a database connection rather than anything more informative or useful to the typical visitor. He recommends that, at the very least, a website should still present these errors in a template similar to the rest of the site.
</p>
<blockquote>
Your average visitor will come to your site expecting information. If something goes wrong (which can always happen), they only need to know that something went wrong, and perhaps they should get a phone number or e-mailaddress where they can report the error.
</blockquote>]]></description>
      <pubDate>Mon, 10 May 2010 09:16:53 -0500</pubDate>
    </item>
  </channel>
</rss>
