For a project I am working on I needed to iterate over all .xml files in a specific directory. I started out with a DirectoryIterator, then considered I didn't want the XML filtering to take place inside my foreach loop. I decided to add a FilterIterator to the setup, but then felt this was not the right solution either. So I turned to my favorite SPL guru, Joshua Thijssen, to see if I was overseeing some kind of filter-option in the DirectoryIterator. I didn't, but I did oversee something else:...
In this recent post from PHPMaster.com Aaron Saray gives a few helpful hints (and reasons to speak) for the aspiring presenters out there wanting to give their first talk at a PHP (or any technology-related) conference.Your heart begins to race. Suddenly, it's stifling hot in here. Your palms begin to sweat and your knees are threatening to give up and flee to a vacation in Cancun without you. The dull rhythmic thump-thump in your ears heightens to a frenzied jack-hammer. You can't remember a time when...
I've not been to a startup weekend in at least a couple years (2009?A 2008?).A The format's similar, but the process is (mostly) more polished than it was back then.A Given that, I still wasn't sure what to expect on Friday evening.A I had an idea I considered pitching, but held off for two reasons.A 1 - there were 58 other pitches - everyone got tired towards the end.A 2 - I wanted to contribute on something besides my own ideas.A That was actually harder than I thought it might be.A Let me...
I have been working on a little pet project and wanted to put it up somewhere to show to a few people how it was going. I wanted something really simple so I decided to give the PHP PaaS solutions a try. Its a very simple Symfony 2.1 based app using Composer for vendor management, so I went on a quest to see what could be done and how.
I have always liked Orchestra, especially because I know the whole crew, but I was left stranded on how I could run the composer commands I needed after deploy. The...
Latest PEAR Releases:
Today, I'm proud to announce theA immediateA availability of a new password hashing library for PHP: PasswordLib. The project is a spin-off of another that I started about a year ago, CryptLib. I was unable to find a clean solution to a few problems in CryptLib, so dev work stalled for a while. I realized recently that the password hashing functionality was complete, so if I stripped out the incomplete parts, it would still be a very useful library. And so PasswordLib was born.Read more A»
As mentioned on the main PHP.net site, the latest Release Candidate for the PHP 5.4.x series is now available for testing:This is the 2nd release candidate. The release candidate phase is intended as a period of bug fixing prior to the stable release. The release candidate fixes a critical issue when using the internal classes in multiple threads. A complete list of changes since the last release candidate can be found in the NEWS file.The source packages can be downloaded from the main QA site and the...
Sebastian GĂ¶ttschkes has a new post to his blog about a set of abstract base testing classes he's developed to help with the functional, unit and validation testing of his Symfony2-based applications.So, when developing with symfony2, I rely on my tests. They are my safety net and without them, I get a little nervous after every change. Does everything work? Did I forget anything? So I developed some classes which I extend. They work on top of PHPUnit and the symfony2 WebTestCase. The classes are used...
Engine Yard has released the audio from a recent (webcast) panel discussion they did about the Future of PHP with members of the PHP community (a part of their "Cloud Out Loud" podcast series).Elizabeth Naramore talks with David Soria Parra, Rasmus Lerdorf, and Stas Malyshev for a panel discussion about Internals. Our panel of experts will share their thoughts and predictions about the existing PHP landscape, and what is to come.It's about 30 minutes long and they talk about PHP 5.4, compiling PHP,...
In a new post to his blog PĂˇdraic Brady wonders if PHP should be more equated to innocent villagefolk or a pillagin' pirate:What PHP excels at is tireless consumption. Marathon races make one hungry and we can't help but notice the feasts being exposed by Rubyland or Pythonville as they do their best to sprint past us. Without that thieving spirit, PHP would long since have entered obscurity as a quaint HTML oriented scripting language used by college students to build cheap websites with flashing text...
I'm currently working on a project where I need to curl to an external server to get some information. If this takes too long, I fall back to a local solution. The timeout for this should be really, really low, so we decided on a 250ms timeout. While testing with this timeout feature, for some reason it *always* used the local fallback. I couldn't figure out why, as when I did a manual curl to the external server, it took 50ms at maximum, way below the timeout value. Turns out it is a problem with libcurl.
Popular posts from PHPDeveloper.org for the past week:Chris Hartjes' Blog: Metatesting: Testing Constructors
XPertDeveloper.com: Configure PHP, Apache, MySQL on Ubuntu 11.10
PHPMaster.com: 6 Extra Skills Every PHP Developer Should Have
Reddit.com: How and When do you use Bitwise?
BinaryTides.com: 40+ Techniques to enhance your php code (3 Part Series)
DZone.com: 2 years of Vim and PHP distilled
Sameer Borate's Blog: PHP 5.4.0 in a nutshell
Joshua Thijssen's Blog: Bloom Filters
Joseph Scott's Blog: Slow...
The PHP development team would like to announce the 2th
release candidate of PHP 5.4.1.
Windows binaries can be downloaded from the
Windows QA site.
THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION!
This is the 2th release candidate. The release candidate phase is
intended as a period of bug fixing prior to the stable release.
The release candidate fixes a critical issue when using the internal
classe in multiple threads.
A complete list of changes since the last...
It seems the idea of Decoupling Content Management is gaining momentum. On the user interface side, many projects have already adopted the VIE interaction framework and widgets from Create, and in the content repository space projects like PHPCR move forward and there are also interesting new ideas like Apache Oak.
While much of this has been made possible by the IKS project, it is also great to see the wider CMS community getting more active in the space. Part of this momentum is also apparent in how...
The PHP development team would like to announce the 2th release candidate of PHP 5.4.1. Windows binaries can be downloaded from the Windows QA site. THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION! This is the 2th release candidate. The release candidate phase is intended as a period of bug fixing prior to the stable release. The release candidate fixes a critical issue when using the internal classe in multiple threads. A complete list of changes since the last release candidate can be found...
Stefan Koopmanschap has a quick new post to his blog with a handy tip for Composer and Cilex/Silex users when dealing with custom namespaces.For a new proof of concept application I'm building, I need both a simple web interface as well as some commandline tools. I decided to use Silex for the web interface and Cilex for the CLI tools, and opted for using Composer for installing these dependencies into my project. I ran into some issues with the custom project libraries I was building for this...
As mentioned by Phil Sturgeon, the London Codeigniter Meetup has come back and will be meeting at the end of this month (April 30th).This month, since it's their first meeting, it's just a "networking" type of event:Meeting in a pub, talking about our experience with CI, development in general, and networking.The meeting is happening in London at 8pm on Monday, April 30th. For more information, check out this event over on Meetup.com.
A stereotypical caricature of a pirate. (Photo credit: Wikipedia)
This is a train of thought article (i.e. it may make sensea€¦or not). You've been warned in advance. The CL;DR will be posted to Twitter when Hell freezes over, pigs fly, and Hollywood makes an ensemble casted DC Universe movie. This is what happens when you have a laptop, an editor, a train ride home, and have just realised that the wifi connection is not working.
In PHP, we're well insulated from what happens in other programmer...
In this new post to the phpDay blog, there's an interview with Stefan Koopmanschap, a speaker at this year's event.This is the second 'social' interview in a series with the phpDay 2012 speakers: it's 'social' because the questions have been submitted and voted online on Facebook. We are happy to introduce you Stefan Koopmanschap (@skoop), co-founder of PHPBenelux, now active in the PFZ.nl events team, symfony community manager. He will give a session at phpDay called "A Practical Look At Symfony2"...
On the Oracle Technology Network today there's a new article from Rasmus Lerdorf about the current release of the language (PHP 5.4) and what he sees as the future for PHP.Almost exactly eight years ago I wrote an article for the Oracle Technology Network called, "Do You PHP?". In that article, I talked about PHP's stubborn, function-over-form approach to solving the "Web problem" and the fight to keep things simple. We were getting close to releasing PHP 5.0 at the time. Now here we are almost a decade...
Latest PHP Tweets