Reading David DeSandro's last post on how to store strings in variables in terminal, or any bash-y shell (I'd say any unix shell but I'm sure there is a weird one out there that does things differently) for that matter, it struck me that many web developers seem to have a big disconnect with the shell.
Now I'm no expert, but I know that the use case he describes can be solved much more efficiently, so I felt like writing a little follow-up, and hopefully teach you, dear reader, a thing or two. The short...
On the Liip blog today Christian Stocker talks about a one-line installer 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.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...
On PHPBuilder.com today there's a new tutorial about using the PEAR Pager package to paginate through results from a MySQL query. The package makes it easy to pass in a data set and handle the pagination requests and interface.Fortunately a great solution [for paginating data] is at your disposal which has been created expressly for this purchase. The PEAR Pager package will not only handle all of the gory tracking details for you, but it can also create a linked navigation list which you can embed into...
This year's FrOSCon conference has officially opened their Call for Papers for this year's event. It's happening August 20th and 21st at the University of Bonn-Rhein-Sieg.The sixth Free and Open Source Software Conference in Sankt Augustin, near Bonn, will take place on August, 20th and 21st 2011. We are looking for submissions in order to again have a comprehensive and interesting program. You can find all you need to know at http://www.froscon.de/en/program/call-for-papers.html. You can find the...
Inspired by some of the recent discussions in the PHP community about the future of the language and the software that uses it, Till Klampaeckel has posted some of his own thoughts on the matter.Last week the usual round of PEAR-bashing on Twitter took place, then this morning Marco Tabini asked if PHP (core) was running out of scratches to itch. He also suggests he got this idea from Cal Evan's blog post about Drupal forking PHP.Till talks about a few different points others have made in their comments...
Advanced Sourcecode Reflection in PHP
Data Base Process
Output Handler Management Class
DB Version Manager
Ebay TurbolisterShipping Service Options
MySQL Wrapper Class 2
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.
The first reaction to that situation was usually to install one of the many available solutions to get everything we need. Like MAMP, XAMPP or install it with a package manager like homebrew or...
Image via Wikipedia
There are a few things many PHP developers should be familiar with. We should be familiar with PEAR packages. We should be familiar with the PEAR installer. More and more of us actually are getting familiar with running PEAR channels. The problem that some of us have, like me, is that we're working against an architecture which focuses on the central PEAR repository. It's the elephant in the room, so to speak, and we spend year after year working around or completely ignoring it....
On the Ibuildings techPortal today they've posted the latest episode in their DPCRadio series (as recorded at last year's Dutch PHP Conference) - Stephan Hochdoerfer's talk Real World Dependency Injection.The Dependency Injection (DI) pattern is getting more and more attention in the PHP world due to it's code simplification effects. It focuses on the complete separation of object instantiation and dependency tracking from the business logic resulting in a loosely coupled system. In addition to that the...
Dries Buytaert recently came down off the mountain (literally, he was snow skiing) to write a post for his blog. Click on inside, I'll share the link, some of my own thoughts, and a call to action for you to speak up.
On the Oracle Technology Network today, the part two of "Scaling PHP MySQL Web Applications" (from Eli White) has been published. Part one can be found here.In Part 1 of this article, I explained the basic steps to move your application from a single server to a scalable solution for both PHP and MySQL. While most Web applications will never need to expand beyond the concepts presented in that article, eventually you may find yourself in a situation where the basic steps aren't enough. Here are some more...
In a new post to his blog Marco Tabini poses an interesting question - is PHP running out of itches to scratch in the evolution of the language?think it's fair to say that the pace at which PHP core is being developed has slowed down considerably over the past couple of years, while the development of many projects based on it, like programming and application frameworks, has sped up and continues to grow at a fast pace. But this doesn't mean that we're running out of steam. The PHP ecosystem is simply...
While setting some svn properties at work,
we wondered about the correct
for .php files.
Looking around in the various magic MIME type detection lists on our unix
machines and the
MIME type list
The options we came up with were:
MIME type rules
Since there is no official MIME type registered at IANA,
only an extension type (x- prefixed)...
In a new episode of the Voices of the ElePHPant podcast, Cal Evans has taken a break from the normal "Three Questions" format of the podcast so far and has instead posted an discussion about recruiters. Brandon Savage and Scott Gordon talk about the pros and cons of working with recruiters.Once I read [Brandon's post on why recruiters are bad for your career], I knew that I needed to get Brandon, and another friend of mine, Scott Gordon - a recruiter for Vaco and serious social media bad-ass - together...
In a quick post to her blog today, Lorna Mitchell talks about an issue with pecl_outh tat came up during her development of a new API. A strange fatal error message was breaking her connection.I'd gone through all the handshaking steps, got the acces token and was ready to start talking to the service itself. However when I tried to call OAuth::fetch, I got an error message: Fatal error: Uncaught exception 'OAuthException' with message 'Invalid protected resource url, unable to generate signature base...
Last week the usual round of PEAR-bashing on Twitter took place, then this morning Marco Tabini asked if PHP (core) was running out of scratches to itch. He also suggests he got this idea from Cal Evan's blog post about Drupal forking PHP.
[Not submitting to your linkbait.]Pecl and PHPSo first off - moving libraries from the core to an external repository...
Chris Hartjes has posted a book review of one of the latest books from Jason Gilmore, "Easy PHP Websites with the Zend Framework" (published March 2011)At 240 pages I wouldn't say this is the type of book that you can really read cover-to-cover at a rapid pace. I think it is more suited as a very long and expanded HOWTO for building an application from scratch. I was also pleased to see that Jason had made the commitment to pushing Test Driven Development by having the reader write tests for the site...
Brian Swan has a new post today looking at how you can update some PHP settings in your Windows Azure instance - an alternative to redeploying your every time your php.ini file might need an update.I came across this question on Twitter last week: "How can I turn display_errors on for an application that is running in Windows Azure?" I have to admit that I was stumped. The only thing I could think of was to re-deploy the application with an updated php.ini file. But, I happened to mention this question...
Latest PECL Releases:
The Midgard Project started to implement the PHPCR interfaces for their content repository. From their website: Midgard is a persistent storage framework built for the replicated world. It enables developers build applications that have their data in sync between the desktop, mobile devices and web services. It also allows for easy sharing of data between users.
This prompted us to clean up the separation between phpcr and jackalope. You find now everything that is phpcr in general on...