<?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, 12 Feb 2012 19:18:10 -0600</pubDate>
    <ttl>30</ttl>
    <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>
    <item>
      <title><![CDATA[Hannes Magnusson's Blog: Unix manual pages for PHP functions]]></title>
      <guid>http://www.phpdeveloper.org/news/13780</guid>
      <link>http://www.phpdeveloper.org/news/13780</link>
      <description><![CDATA[<p>
<i>Hannes Magnusson</i> has <a href="http://bjori.blogspot.com/2010/01/unix-manual-pages-for-php-functions.html">a new post</a> today about an interesting feature of the PHP documentation some might not have known existed - manual pages (man) for PHP functions/methods for unix systems.
</p>
<blockquote>
For a while I had vim configured to run reflection when I hit "<a href="http://vimdoc.sourceforge.net/htmldoc/various.html#K">K</a>", but after the PHP documentation team released unix manual pages for PHP I now get the manual page in all its glory; function description, parameter descriptions, return values, examples, notes, see also and everything you are used to see from the online manual. Its awesome.
</blockquote>
<p>
These manual pages aren't installed by default, so you'll have to grab the download from the PEAR channel for the PHP documentation (doc.php.net/pman). If you're wanting to use it in VIM, you'll also need to change the <a href="http://vimdoc.sourceforge.net/htmldoc/options.html#%27keywordprg%27">keywordprg</a> setting to "pman".
</p>]]></description>
      <pubDate>Tue, 05 Jan 2010 11:06:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Thomas' Blog: Solar Framework Shorts - Extending Solar's Page Controller]]></title>
      <guid>http://www.phpdeveloper.org/news/13340</guid>
      <link>http://www.phpdeveloper.org/news/13340</link>
      <description><![CDATA[<p>
<i>Richard Thomas</i> has posted <a href="http://www.phpjack.com/content/solar-framework-shorts-extending-solars-page-controller">another "short"</a> in his series looking at the features of the <a href="http://solarphp.com">Solar Framework</a>. This time he focuses on enhancing the base framework functionality by extending the Solar_Controller_Page class.
</p>
<blockquote>
Solar's manual has a getting started section that walks you through setting up a basic app, This app extends "Solar_Controller_Page" which handles a lot of the backend work for you. As you get into your project you will find that pretty much every controller you have needs access to some basic structures and information, how can you ensure these are always available?
</blockquote>
<p>
His example extends the Solar_Controller_Page to provide two model objects automatically to the rest of his application (as protected objects in the base class).
</p>]]></description>
      <pubDate>Tue, 06 Oct 2009 08:24:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Unravel the Music Blog: Partial-page caching with Memcached and PHP in 3 easy steps]]></title>
      <guid>http://www.phpdeveloper.org/news/12532</guid>
      <link>http://www.phpdeveloper.org/news/12532</link>
      <description><![CDATA[<p>
On the Unravel the Music blog there's <a href="http://www.unravelthemusic.com/blog/view/9">a recent post</a> about using memcached to held reduce the load on your PHP applications by caching certain parts of your pages.
</p>
<blockquote>
Many framework and standalone PHP developers are given options to do full-page caching but partial page caching is rarely an option. Many times a sidebar or a footer that is loaded with dynamic content can be cached for 5, 10, or even 30 minutes without needing to read from the database again. This can drastically reduce the load on the server as query results for certain portions of your page are stored temporarily. [...] Memcached can store queries that have been processed and the bits of HTML that go with their presentation. Read on for a detailed example.
</blockquote>
<p>
Once the memcache functionality is installed, its a snap to get right into caching your content. The two examples - pushing data in and pulling it back out - show how to cache a bit of HTML content to be used later.
</p>]]></description>
      <pubDate>Mon, 18 May 2009 12:29:06 -0500</pubDate>
    </item>
  </channel>
</rss>

