<?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>Tue, 22 May 2012 12:10:57 -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[PHP-Security.net: Suhosin 0.9.34-DEV Installation HowTo]]></title>
      <guid>http://www.phpdeveloper.org/news/17903</guid>
      <link>http://www.phpdeveloper.org/news/17903</link>
      <description><![CDATA[<p>
On the PHP-Security.net blog today there's <a href="http://www.php-security.net/archives/8-Suhosin-0.9.34-dev-installation-howto.html">a new post</a> showing how to get the latest version of the <a href="http://www.hardened-php.net/suhosin/">Suhosin</a> security patch for PHP installed. 
</p>
<blockquote>
With the recently released PHP 5.4, the Suhosin patch and extension were removed from many Linux distribution packages (i.e., Debian et al.) and until three weeks ago, there was no possibility to compile and run the Suhosin extension under PHP 5.4. This little howto shall serve as installation instruction for Debian Wheezy users - your mileage may vary. I blogged about this here.
</blockquote>
<p>
They start with the apt-get commands to install the latest PHP5 for your distribution (yum commands are similar, of course) and includes the <a href="https://github.com/stefanesser/suhosin/tarball/master">location to download</a> the latest Suhosin version from <i>Stefan Esser</i>'s github account. Unpack it, compile and "phpize" it and if all goes well, you should have a shared module built and ready for use.
</p>]]></description>
      <pubDate>Thu, 03 May 2012 11:54:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Artur Ejsmont's Blog: How to build mongodb pecl extension in 32bit for PHP 5.2 on OSX Snow Leaopard]]></title>
      <guid>http://www.phpdeveloper.org/news/17494</guid>
      <link>http://www.phpdeveloper.org/news/17494</link>
      <description><![CDATA[<p>
<i>Artur Ejsmont</i> has <a href="http://artur.ejsmont.org/blog/content/how-to-build-mongodb-pecl-extension-in-32bit-for-php-52-on-macosx-snow-leaopard">a recent post</a> to his blog showing how to get a MongoDB PECL extension to compile in a 32bit OSX environment (Snow Leopard).
</p>
<blockquote>
Here is a quick step by step guide on how to get mongodb and PHP5.2 mongo pecl extension going on your MacOSX in 32bit mode! NOTE: 32 bit mongodb binaries have 2GB address space limit so you wont be able to process too much on your laptop. You will still be able to code and connect to remote instances just fine.
</blockquote>
<p>
His process includes five steps - well, eight if you count the optional "install MongoDB" ones too - complete with the commands you'll need to get things compiled, ready for copy and paste. You can find the MongoDB PECL package <a href="http://pecl.php.net/package/mongo">here</a>.
</p>]]></description>
      <pubDate>Fri, 03 Feb 2012 10:35:11 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Koopmanshcap's Blog: Installing the Geoip PECL package for Zend Server on OSX]]></title>
      <guid>http://www.phpdeveloper.org/news/17385</guid>
      <link>http://www.phpdeveloper.org/news/17385</link>
      <description><![CDATA[<p>
In <a href="http://www.leftontheweb.com/message/Installing_the_Geoip_PECL_package_for_Zend_Server_on_OSX">this recent post</a> to his blog <i>Stefan Koopmanschap</i> shares some of the troubles (and a solution) when he was dealing with getting the Geoip PECL extension installed on his Zend Server setup in OSX.
</p>
<blockquote>
Today I needed to get a client application up and running on my local system. This application uses the Geoip PECL package, so I needed to get this up and running. This turned out to be slightly more difficult than just a PECL install, as you're missing some libraries by default, so here is my log of things to do to get it up and running.
</blockquote>
<p>
He gives the complete list of steps his followed including <a href="http://re2c.org/">downloading the source</a> and his way around this "System could not load this extension" issue. The trick was to recompile the source with the correct architecture. By default his extension was built with i386 instead of 64-bit but updating some of the CFLAGS settings (and a few other environment variables) got things compiling correctly. 
</p>]]></description>
      <pubDate>Thu, 12 Jan 2012 11:09:56 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ariz Jacinto's Blog: Compiling PHP with MSSQL Server's Native ODBC Driver for Linux as a PDO Driver]]></title>
      <guid>http://www.phpdeveloper.org/news/17372</guid>
      <link>http://www.phpdeveloper.org/news/17372</link>
      <description><![CDATA[<p>
<i>Ariz Jacinto</i> has written up <a href="http://blog.acjacinto.com/2011/11/compiling-php-with-mssql-servers-native.html">a new post</a> with the commands you'll need to get PHP up and runnign with MSSQL Server's native ODBC driver working on linux (accessible through PDO).
</p>
<blockquote>
Last month, MS announced the preview release of <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/10/13/microsoft-announces-sql-server-odbc-driver-for-linux.aspx">SQL Server ODBC Driver for Linux</a>, a 64-bit binary driver for Red Hat Enterprise Linux 5. This is good news for companies using heterogenous platforms e.g. LAMP stack running a PHP application that connects to both MySQL and MSSQL Server. Meaning, these companies no longer have to use third-party drivers such as <a href="http://www.freetds.org/">FreeTDS</a> that MS doesn't support. Then a few days ago, MS <a href="http://www.microsoft.com/download/en/details.aspx?id=28160">released version 1 of the driver</a>. I immediately downloaded the driver and recompiled PHP with it as a PDO  (PHP Data Object) ODBC driver.
</blockquote>
<p>
His process has five steps to it, including one for making a test script (code included) and another with a few gotchas/performance considerations to keep an eye out for when using the driver.
</p>]]></description>
      <pubDate>Tue, 10 Jan 2012 12:34:26 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ralph Schindler's Blog: Compiling Gearman (or anything) for Zend Server CE on Snow Leopard]]></title>
      <guid>http://www.phpdeveloper.org/news/17363</guid>
      <link>http://www.phpdeveloper.org/news/17363</link>
      <description><![CDATA[<p>
<i>Ralph Schindler</i> has a new post to his blog today detailing the process you'll need to <a href="http://ralphschindler.com/2010/05/12/compiling-gearman-or-anything-for-zend-server-ce-on-snow-leopard">compile Gearman (or just about anything)</a> on a Zend Server CE install on Snow Leopard.
</p>
<blockquote>
Zend Server CE for Mac (as of this writing), comes compiled as an i386 executable only. This includes the PHP binary, php library, and apache binaries that come shipped with ZSCE. While ZSCE works great out the box with all the provided extensions, you might find that you want some additional 3rd party PHP extensions compiled/linked into this stack. That's where things get a little confusing, and in this post, we'll look at how to install the gearman extension.
</blockquote>
<p>
He give two methods - the easy way where you can export a CFLAGS setting to compile with multiple architectures or the harder way (that works for Gearman), building static libraries. The full list of commands (and some example output) is included in <a href="http://ralphschindler.com/2010/05/12/compiling-gearman-or-anything-for-zend-server-ce-on-snow-leopard">the post</a>. In the comments there's also an example of the install if you're using <a href="http://www.macports.org">Macports</a>.
</p>]]></description>
      <pubDate>Mon, 09 Jan 2012 10:59:35 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: Lately in PHP Podcast Episode 19 - The Debate of Making PHP Faster using a JIT]]></title>
      <guid>http://www.phpdeveloper.org/news/17352</guid>
      <link>http://www.phpdeveloper.org/news/17352</link>
      <description><![CDATA[<p>
On PHPClasses.org today the latest episode (#19) of the "Lately in PHP" podcast <a href="http://www.phpclasses.org/blog/post/170-The-Debate-of-Making-PHP-Faster-using-a-JIT-Compiler--Lately-in-PHP-podcast-episode-19.html">has been posted</a>. In it <i>Manual Lemos</i> and <i>Ernani Joppert:</i> talk about the concept of a JIT (just in time) compiler for PHP (such as HipHop or Phalanger).
</p>
<blockquote>
JIT compilation is the main topic of the episode 19 of the Lately in PHP podcast presented by Manuel Lemos and Ernani Joppert who received as guests Miloslav Beno of the Phalanger team and Nuno Lopes of the PECL LLVM project to discuss this and other interesting topics of the PHP scene.
</blockquote>
<p>
The hosts and their guests talk about compiling PHP, things that happened in 2011 and look forward to what's to come in the world of PHP in 2012. You can listen to this latest episode either via the <a href="http://www.phpclasses.org/blog/post/170-The-Debate-of-Making-PHP-Faster-using-a-JIT-Compiler--Lately-in-PHP-podcast-episode-19.html">in-page player</a>, by <a href="http://www.phpclasses.org/blog/post/170/file/103/name/Lately-In-PHP-19.mp3">downloading the mp3</a> or by <a href="http://www.phpclasses.org/blog/category/podcast/post/latest.rss">subscribing to the podcast feed</a>.
</p>]]></description>
      <pubDate>Thu, 05 Jan 2012 12:31:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: PHP's Quest for Performance: From C to hhvm]]></title>
      <guid>http://www.phpdeveloper.org/news/17280</guid>
      <link>http://www.phpdeveloper.org/news/17280</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new post from <i>Matthew Turland</i> talking about PHP's <a href="http://phpmaster.com/phps-quest-for-performance/">quest for performance</a> and some of the recent advancements that have made better performing applications even more possible.
</p>
<blockquote>
While it's sufficient for many users, as PHP sees increased use by large sites like Wikipedia and Facebook, the ability to serve more requests on fewer servers becomes increasingly important. Some efforts have been made in this area in the last few years, both within and outside the PHP internals team. However, understanding exactly what's going on requires a bit of background both in history and concepts.
</blockquote>
<p>
He goes through some of the origins of the PHP language (from the early days with <i>Rasmus Lerdorf</i>) to the fact that the PHP language itself is interpreted - complete with some of the overhead that comes with that. He also mentions various projects that have tried to compile PHP back down to C to increase performance like <a href="http://www.roadsend.com/home/index.php">Roadsend</a>, <a href="https://www.facebook.com/note.php?note_id=280583813919">HipHop</a> and, most recently, the <a href="https://www.facebook.com/notes/facebook-engineering/the-hiphop-virtual-machine/10150415177928920">HipHop virtual machine</a> from Facebook.
</p>]]></description>
      <pubDate>Tue, 20 Dec 2011 08:40:58 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Using CLANG/scan-build for Static Analysis of the PHP Interpreter]]></title>
      <guid>http://www.phpdeveloper.org/news/17269</guid>
      <link>http://www.phpdeveloper.org/news/17269</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Sebastian Bergmann</i> takes a quick look at <a href="http://sebastian-bergmann.de/archives/916-Using-CLANGscan-build-for-Static-Analysis-of-the-PHP-Interpreter.html">using a static analyzer</a>, <a href="http://clang.llvm.org/">clang</a> and scan-build, to analyze the PHP interpreter (specifically during the compile process).
</p>
<blockquote>
I have been tinkering with <a href="http://clang.llvm.org/">CLANG</a>'s <a href="http://clang-analyzer.llvm.org/">static analyzer</a> lately. This post summarizes how I installed LLVM and CLANG and performed the analysis of a build of the PHP interpreter.
</blockquote>
<p>
He includes all the commands (unix-based) to get the clang tools/libraries installed in the correct places as well as what to add to your $PATH to get the "scan-build" command to work with the make and make install parts of the PHP compile process.
</p>]]></description>
      <pubDate>Fri, 16 Dec 2011 09:48:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chance Garcia's Blog: MAMP PRO, PECL, SSH2, and OSX CLI (AKA acronym madness)]]></title>
      <guid>http://www.phpdeveloper.org/news/17107</guid>
      <link>http://www.phpdeveloper.org/news/17107</link>
      <description><![CDATA[<p>
<i>Chance Garcia</i> has a recent post to his blog showing how he <a href="http://phpprotip.com/2011/11/mamp-pro-pecl-ssh2-and-osx-cli-aka-acronym-madness/">fixed an issue with his MAMP install</a> involving development of a <a href="https://github.com/chancegarcia/CG/blob/github/Ssh.php">SSH wrapper</a> he developed and some testing out of PHPStorm and PHPUnit.
</p>
<blockquote>
One thing I can say is that, even though I use a convenient app like MAMP PRO to set up my local development environment, I'm glad my sysadmin-fu is up to snuff enough to fly without the conveniences because after this ordeal, I feel like I might as well have made my MAMP stack from scratch with all the hoops I jumped tonight.
</blockquote>
<p>
He shares a few of the things he discovered along the way like: the location of MAMP's "pecl" command, an error caused by a bad pear.conf file, doing custom compiles of PHP and libssh as a fallback and getting the extension to work in the CLI PHP version too.
</p>]]></description>
      <pubDate>Wed, 09 Nov 2011 11:37:34 -0600</pubDate>
    </item>
  </channel>
</rss>

