<?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 15:46:12 -0600</pubDate>
    <ttl>30</ttl>
    <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[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[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>
    <item>
      <title><![CDATA[Mark Hamlin's Blog: Debugging xdebug (tcp, dns, ubuntu, osx, vmware) ((all at once))]]></title>
      <guid>http://www.phpdeveloper.org/news/16799</guid>
      <link>http://www.phpdeveloper.org/news/16799</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Mark Hamlin</i> talks about <a href="http://uber-code.blogspot.com/2011/08/more-debugging-xdebug-tcp-dns-ubuntu.html">some of his difficulties</a> in getting <a href="http://xdebug.org">XDebug</a> and <a href="http://netbeans.org">Netbeans</a> working together from an OSX machine hitting a Ubuntu server.
</p>
<blockquote>
For the past 18 months working with PHP, i've primarily used alternatives, not out of preference, but because netbeans xdebug integration consistently failed me.  It would (might) work with a remote apache, but would not play with scripts executed remotely from the command line.  I could be fairly sure my xdebug config was sound as I no problems with MacGDB and PHPStorm whatsoever.
</blockquote>
<p>
With a little more investigation, he discovered that it was the OSX firewall causing issues. He found that, with a new incoming connection came a confirmation box to approve the connection. This, of course, wasn't passed along to Netbeans so he never saw it. In the end, he set up a reverse SSH tunnel to bypass the firewall completely (command included).
</p>]]></description>
      <pubDate>Wed, 31 Aug 2011 13:04:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Reddit.com: How do you test email when in development?]]></title>
      <guid>http://www.phpdeveloper.org/news/16798</guid>
      <link>http://www.phpdeveloper.org/news/16798</link>
      <description><![CDATA[<p>
In <a href="http://www.reddit.com/r/PHP/comments/jzccc/how_do_you_test_email_when_in_development/">this recent post</a> to Reddit, a question is asked that's an issue for many developers testing the email sending abilities of their applications - how can it be tested effectively without outside services flagging you as a possible spammer.
</p>
<blockquote>
So how do you guys do it? My current solution is to just output the email template HTML straight to the browser, but this doesn't always work. [...] I have considered sending emails through to my GMail, but I run my tests quite often and I'm not sure Google would be too happy with the amount I send. [...] I'm sure there's a better way I can handle this without modifying my code too much. Suggestions appreciated.
</blockquote>
<p>
Suggestions from <a href="http://www.reddit.com/r/PHP/comments/jzccc/how_do_you_test_email_when_in_development/#comments">the comments</a> include:
</p>
<ul>
<li>a local SMTP/IMAP server configured to catch all emails being sent
<li>Changing the address based on an environment flag
<li>Using "<anything>@example.com" 
<li>Saving the email as a .msg file for later review
</ul>
<p>
There's also suggestions of other Mac or Windows software to mimic the mail server like <a href="http://smtp4dev.codeplex.com/">smtp4dev</a> and <a href="http://mocksmtpapp.com/">MockStmp</a>
</p>]]></description>
      <pubDate>Wed, 31 Aug 2011 12:58:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Bertrand Mansion's Blog: PHP with Itnl and Gettext on OSX Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/16694</guid>
      <link>http://www.phpdeveloper.org/news/16694</link>
      <description><![CDATA[<p>
<i>Bertrand Mansion</i> has a recent post to his blog looking at repairing missing functionality in the latest OS X update (Lion) with <a href="http://mansion.im/2011/php-with-intl-and-gettext-on-osx-lion/">the intl extension and gettext</a> (not installed by default).
</p>
<blockquote>
Mac OSX Lion ships with PHP 5.3.6. [...] These are all very good solutions, but since I prefer to travel light and the version in Lion already comes with a lot of useful extensions, I preferred to go with it.
</blockquote>
<p>
He shows how to update the default Lion PHP install to include some of the things he needed for his development including:
</p>
<ul>
<li>setting up the php.ini file
<li>installing PEAR/PECL
<li>installing the <a href="http://www.php.net/manual/fr/book.intl.php">intl extension</a>
<li>and a hack to get <a href="http://ftp.gnu.org/gnu/gettext/">gettext</a> working (renaming a base function)
</ul>]]></description>
      <pubDate>Tue, 09 Aug 2011 11:40:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.7 Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/16628</guid>
      <link>http://www.phpdeveloper.org/news/16628</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has posted his own guide to getting <a href="http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/">PHP 5.3 set up on OS X 10.7 Lion</a>, the just-released update for Apple's operating system. It comes with a bundled set of PHP-related tools but you might want to set them up your own way. This is where the guide comes in.
</p>
<blockquote>
With OS X 10.7, Apple continues to ship PHP 5.3 with PEAR, GD and PDO_MYSQL out of the box. This is how to set it up from a clean install of 10.7.
</blockquote>
<p>
He goes through each of the pieces of software and talks about where to download the latest from and what configuration steps are needed:
</p>
<ul>
<li>MySQL
<li>Apache
<li>the php.ini
<li>Xdebug
<li>PEAR
<li>PHPUnit (and friends)
<li>PECL OAuth
<li>mcrypt
</ul>]]></description>
      <pubDate>Mon, 25 Jul 2011 12:12:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alex Simonenko's Blog: Installing PHP 5.3.6 on OS X Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/16613</guid>
      <link>http://www.phpdeveloper.org/news/16613</link>
      <description><![CDATA[<p>
<i>Alex Simonenko</i> has a new post to his blog talking about what he had to do to get PHP 5.3.6 working on his OS X Lion installation since a <a href="http://66.163.168.225/babelfish/translate_url_content?.intl=us&lp=ru_en&trurl=http%3a%2f%2fblog.simonenko.su%2fpost%2f4220319832%2finstall-php-5-3-6-on-snow-leopard">previous method</a> no longer worked. in <A href="http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fblog.simonenko.su%2Fpost%2F7584677692%2Finstall-php-5-3-6-on-osx-lion&lp=ru_en&btnTrUrl=Translate">his new post</a> he shares his solution - using Homebrew. (Note: original post is in Russian)
</p>
<blockquote>
After installing OS X Lion (10.7) was faced with an unpleasant problem, <a href="http://blog.simonenko.su/post/4220319832/install-php-5-3-6-on-snow-leopard">install PHP + MySQL bundle as I did before</a> does not work. And as it turned out, the problem is in MySQL, source code is not yet ready for the new OS from Apple. After some thought and reading similar problems on the Internet, I found [a solution to the problem].
</blockquote>
<p>
He includes the commands you'll need to get Homebrew installed and configured to install a fresh download of the archive (dmg) after a few setup changes. He uses Homebrew to install a few dependencies the installation will need and his example configure options for the build. Then the install is just a "make" and "make install" away.
</p>]]></description>
      <pubDate>Wed, 20 Jul 2011 11:27:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Liip Blog: PHP 5.3 for OS X 10.6 One-Line Installer]]></title>
      <guid>http://www.phpdeveloper.org/news/16189</guid>
      <link>http://www.phpdeveloper.org/news/16189</link>
      <description><![CDATA[<p>
On the Liip blog today <i>Christian Stocker</i> talks about a <a href="http://blog.liip.ch/archive/2011/04/13/php-5-3-for-os-x-10-6-one-line-installer.html">one-line installer</a> that's been developed to get PHP 5.3 up and working on an OS X 10.6 platform without much hassle. The tool updates everything needed to get a bit more robust version of the language installed and ready for use.
</p>
<blockquote>
Apple computers and OS X are quite common here at Liip (and local.ch) as developer machines. But while OS X comes with a not-too-old PHP installation, it nevertheless doesn't have everything we need (for example the infamous intl extension) and it's not that easily extendable with self-compiled extensions. [...] Our friends at <a href="http://local.ch/">local.ch</a> took this very dissatisfying situation in their own hands, forked the build-entropy-php script from Marc Liyanage's great <a href="http://www.entropy.ch/home/">entropy</a> work, extended and adjusted it to their (and our) needs.
</blockquote>
<p>
If you'd like to try out the package on your own systems, you can find it and the full instructions for its use at <a href="http://php-osx.liip.ch/">http://php-osx.liip.ch/</a>. He also points out the actual build part of the process (<a href="https://github.com/liip/build-entropy-php">build-entropy-php</a>) as well as <a href="https://github.com/liip/packager">the packager</a> you'll need for it to grab the library updates it needs.
</p>]]></description>
      <pubDate>Wed, 13 Apr 2011 11:16:19 -0500</pubDate>
    </item>
  </channel>
</rss>

