<?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, 24 May 2012 06:32:31 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Marcus Bointon's Blog: Compiling wkhtmltopdf on Mac OS X 10.7 Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/17967</guid>
      <link>http://www.phpdeveloper.org/news/17967</link>
      <description><![CDATA[<p>
<i>Marcus Bointon</i> has <a href="http://marcus.bointon.com/compiling-wkhtmltopdf-on-mac-os-x-10-7-lion/">written up the process</a> he took to get the PHP extension for <a href="http://code.google.com/p/wkhtmltopdf/">Wkhtmltopdf</a> (a conversion tool for HTML to PDF generation) up and working on a Mac OSX machine - not as easy a task as it sounds.
</p>
<blockquote>
<a href="http://code.google.com/p/wkhtmltopdf/">Wkhtmltopdf</a> is extremely cool. I've used qtwebkit for generating server-side page images before using <a href="https://github.com/AdamN/python-webkit2png">python-webkit2png</a>, and that's fine (unlike using Firefox running in xvfb!), but I need to produce PDFs. So, I looked around and found several neat, simple PHP wrappers for calling wkhtmltopdf, and even a <a href="https://github.com/mreiferson/php-wkhtmltox">PHP extension</a>. "Great", I thought, "I'll just install that and spend time working on the layouts since the code looks really simple". I spoke too soon.
</blockquote>
<p>
He goes through each step of the process - installing the needed wkhtmltox and libwkhtmltox support, having to manually compile wkhtmltopdf and some of the small changes you'll need to make to the Makefile to get things to cooperate. He shows where to put the resulting application files and the name of the extension to enable in your php.ini.
</p>]]></description>
      <pubDate>Wed, 16 May 2012 11:55:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Common problems designers have when working with Symfony]]></title>
      <guid>http://www.phpdeveloper.org/news/17891</guid>
      <link>http://www.phpdeveloper.org/news/17891</link>
      <description><![CDATA[<p>
On the ServerGrove blog there's a new post that helps to bridge a gap between Symfony PHP developers and the designers that might be working with the result of their hard work. The post <a href="http://blog.servergrove.com/2012/04/30/common-problems-designers-have-when-working-with-symfony/">shares solutions to four common problems</a> the designer might have.
</p>
<blockquote>
For designers, Symfony2 has been a welcome change from those old flat PHP files. Twig is beautiful, the framework separates the code from the layout, and we no longer have to find our way through lines of PHP code. But if you are a designer working on a symfony project for the first time, these are a few tips that can help you get up and running quickly.
</blockquote>
<p>The four common problems they've seen are:</p>
<ul>
<li>How do I disable the toolbar at the bottom of the page?
<li>Errors about missing libraries/files
<li>No Javascript or no-css showing up
<li>A completely blank page
</ul>]]></description>
      <pubDate>Tue, 01 May 2012 12:17:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Justin Carmony's Blog: PHP, Sessions, __sleep, and Exceptions]]></title>
      <guid>http://www.phpdeveloper.org/news/17738</guid>
      <link>http://www.phpdeveloper.org/news/17738</link>
      <description><![CDATA[<p>
<i>Justin Carmony</i> has a recent post to his blog about a problem he came across where his exception was being thrown with a line number of zero - cause for <a href="http://www.justincarmony.com/blog/2012/03/23/php-sessions-__sleep-and-exceptions/">some investigation</a>.
</p>
<blockquote>
Today I ran into a problem where my PHP Application would throw this fatal error: "Fatal error: Exception thrown without a stack frame in Unknown on line 0". Which is so much fun, because it doesn't have a line number, so I had no direction as to what exactly was causing the problem. 
</blockquote>
<p>
He found <a href="http://www.compdigitec.com/labs/2009/08/02/solving-fatal-error-exception-thrown-without-a-stack-frame-in-unknown-on-line-0/">a blog post</a> that helped him track down the issue that, as it turns out, with serializing objects into the session and an error in the __sleep method.
</p>]]></description>
      <pubDate>Tue, 27 Mar 2012 12:25:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vance Lucas' Blog: Nginx + PHP-FPM Blank Pages with Phar Packages]]></title>
      <guid>http://www.phpdeveloper.org/news/17648</guid>
      <link>http://www.phpdeveloper.org/news/17648</link>
      <description><![CDATA[<p>
<i>Vance Lucas</i> has a new post sharing some of his experience in <a href="http://www.vancelucas.com/blog/nginx-php-fpm-blank-pages-with-phar-packages/">setting up nginx+PHP-FPM with phar packages</a> that he recently had with setting up a new server instance for a company. The problem showed itself as blank pages, apparently due to a feature in the Suhosin security package.
</p>
<blockquote>
Ran into this issue when setting up a new VPS for <a href="http://autoridge.com/">AutoRidge</a>. This happens when using Nginx and PHP-FPM with PHP 5.3+ and the Suhosin patch when trying to run a PHP script using a PHAR package. From what I can gather, the Suhosin patch basically blocks PHP include/require functions from executing files ending with .phar, which results in a PHP segfault that leaves no trace of any error at all.
</blockquote>
<p>
His solution is a pretty simple one - edit the "suhosin.ini" file to allow for the opening of includes in <a href="http://php.net/phar">phar</a> files (suhosin.executor.include.whitelist). You can find out more about the Suhosin security tool <a href="http://www.hardened-php.net/suhosin/">on the project's website</a>.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2012 12:18:02 -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[Reddit.com: What everyone should know about strip_tags()]]></title>
      <guid>http://www.phpdeveloper.org/news/17282</guid>
      <link>http://www.phpdeveloper.org/news/17282</link>
      <description><![CDATA[<p>
In <a href="http://www.reddit.com/r/PHP/comments/nj5t0/what_everyone_should_know_about_strip_tags/">this new post to Reddit</a>, the author shares a bit of their knowledge on what they think everyone should know about <a href="http://php.net/strip_tags">strip_tags</a> and some of the issues that can come with it (including security problems).
</p>
<blockquote>
<a href="http://www.php.net/manual/en/function.strip-tags.php">strip_tags</a> is one of the common go-to functions used for making user input on web pages safe for display. But contrary to what it sounds like it's for, strip_tags is never, ever, ever the right function to use for this and it has a lot of problems.
</blockquote>
<p>
Specific problems mentioned include "eating" of valid text, not preventing typed HTML entities, the whitelist of tags opening holes and character set issues that could have security implications. Other tools are recommended in both the article and the comments like <a href="http://htmlpurifier.org/">HTML Purifier</a>, the option of <a href="https://secure.wikimedia.org/wikipedia/en/wiki/BBCode">BBCode</a> and <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Markdown">Markdown</a>.
</p>]]></description>
      <pubDate>Tue, 20 Dec 2011 10:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Kevin Schroeder's Blog: fatal: The remote end hung up unexpectedly]]></title>
      <guid>http://www.phpdeveloper.org/news/17089</guid>
      <link>http://www.phpdeveloper.org/news/17089</link>
      <description><![CDATA[<p>
<i>Kevin Schroeder</i> has a <a href="http://www.eschrade.com/page/fatal-the-remote-end-hung-up-unexpectedly">quick tip</a> for anyone using <a href="http://phpcloud.com">phpcloud.com</a> and having trouble with git and "remote end hung up" error messages.
</p>
<blockquote>
If  you are using phpcloud.com and are experiencing errors with git [...] and you are trying to push large files (not sure what is defined as "large") you may need to change some git settings.
</blockquote>
<p>
He points out two settings - one for Windows and the other for Linux - that increase the buffer size to handle larger files that might be included in your repository.
</p>]]></description>
      <pubDate>Fri, 04 Nov 2011 12:55:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Martin Psinas' Blog: Switching to PDO]]></title>
      <guid>http://www.phpdeveloper.org/news/16674</guid>
      <link>http://www.phpdeveloper.org/news/16674</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Martin Psinas</i> talks about some of his pains experienced with <a href="http://psinas.com/index.php?blogid=8">upgrading his code to use PDO</a> instead of the mysql extension for database interaction.
</p>
<blockquote>
I read not too long ago that the mysql library in PHP is <a href="http://news.php.net/php.internals/53799">being deprecated</a> as of v6.0 in favor of mysqli or PDO, so of course I had to update all of my database code keep on top of things. I spent about 5 or 6 hours over the course of 2 days familiarizing myself with the new syntax and updating my code offline. Without any testing, I decided I could go ahead and push the code "live" because I'm just that over-confident sometimes, although I did make a backup in case anything went wrong (or so I thought).
</blockquote>
<p>
Two problems jumped out immediately - a SQL error caused by <a href="https://bugs.php.net/bug.php?id=40740">this bug</a> and the other being a problem with preparing his statement inside of a session handling method.
</p>]]></description>
      <pubDate>Thu, 04 Aug 2011 10:17:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ruslan Yakushev's Blog: WinCache and WordPress plugin upgrade problem]]></title>
      <guid>http://www.phpdeveloper.org/news/16204</guid>
      <link>http://www.phpdeveloper.org/news/16204</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Ruslan Yakushev</i> points out <a href="https://sourceforge.net/projects/wincache/files/development/">a new build of WinCache</a> (the Windows caching tool for PHP) that makes life easier for WordPress users who want it to be able to to the auto-upgrade correctly.
</p>
<blockquote>
The WinCache extension 1.1 for PHP has been released last year. Since then several customers reported <a href="http://pecl.php.net/bugs/bug.php?id=18010">a bug</a> in the extension that prevents WordPress and other PHP applications from performing automatic upgrades or their plugins. This was reported on <a href="http://wordpress.org/support/topic/wordpress-on-iis-7-plugin-update-problem?replies=33">WordPress forum</a> as well as on <a href="http://forums.iis.net/t/1169832.aspx">WinCache forum</a>. The new build of WinCache with the fix for this problem is available now at the following location: <a href="https://sourceforge.net/projects/wincache/files/development/">https://sourceforge.net/projects/wincache/files/development/</a>
</blockquote>
<p>
He asks for feedback if things still don't work - either as a comment in the <a href="http://forums.iis.net/1164.aspx">WinCache forum</a> or as a bug to the <a href="http://pecl.php.net/bugs/search.php?cmd=display&status=Open&package_name[]=WinCache">PECL database</a>. This will help them improve the support in future releases and make it even easier for those running WordPress on Windows to keep their sites running smoothly.
</p>]]></description>
      <pubDate>Fri, 15 Apr 2011 10:12:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rafael Dohms' Blog: Problem Solving technique #1: Taking a mental break]]></title>
      <guid>http://www.phpdeveloper.org/news/15867</guid>
      <link>http://www.phpdeveloper.org/news/15867</link>
      <description><![CDATA[<p>
<i>Rafael Dohms</i> has <a href="http://blog.rafaeldohms.com.br/2011/02/04/taking-a-break-to-solve-problems/">posted a new tip</a> for developers (and really anyone else that has to concentrate on mentally challenging tasks all day) that could sometime help you break through that wall you've hit in your code - take a mental break.
</p>
<blockquote>
Developers are modern day artists whose masterpieces are not hung on walls but stretched out thin on web servers all over the world, yes that is very poetic, but I really try to look at developers as artists and puzzle solvers. [...]  A different activity, to most its the simple act of going to get coffee or water, taking a stroll outside in the fresh air, some like sports, some like games.. everyone has their escape valve.
</blockquote>
<p>
He gives an example of a friend (<a href="http://chester.blog.br/">Chester</a>) who, when he hit a mark he just couldn't pass, turned to a set of lego blocks to help clear his mind. The subconscious mind kicks in as you preoccupy the conscious and a lot of times the answer floats up to he top with little or no effort. 
</p>]]></description>
      <pubDate>Mon, 07 Feb 2011 12:08:44 -0600</pubDate>
    </item>
  </channel>
</rss>

