Johannes Schlüter has a recent post highlighting an interesting PHP extension that can connect memcache with your MySQL server via PHP, the PECL mysqlnd_memcache extension.Now this blog entry is tagged a s PHP. Hs is that coming into play? - Well, on the one side we have this fast memcache interface, which allows to access almost arbitrarry data from the database. On the other side we have our PHP mysqlnd plugin interface where we can add special features, like query caching or load balancing,...
The new stable series of the Midgard2 Content Repository library was released recently. This version builds on the long-term supported Ratatoskr series, adding some new features:
Asynchronous I/O operations with the content repository
Easier migration from the Midgard1 series
Asynchronous I/O is important when the content repository is used in persistent applications like desktop software or Node.js, where Midgard can be used via node-gir (see examples). You can read more about async operations in the...
In this new post to his site Gonzalo Ayuso introduces you to one of the more powerful parts of the PHP language - the DateTime object.I've seen a lot of newbies (and not newbies) having problems handling dates in PHP (and even with SQL and another languages). When I see someone having problems with dates, I always ask the same question. I type in a text editor "27/11/2012″ and I ask him: What is it? If your answer is "This is a date" you should continue reading the post.He talks about how the DateTime...
Features of object oriented languages are often use from a purely technical
perspective, without respect to their actual semantics. This is fine as long
as it works for you, but might lead to problems in the long run. In this
article I discuss the semantical differences between abstract classes
and interfaces. I also outline why following the semantics of those
language constructs can lead to better code.
Latest PECL Releases:
Well, I know it's been a while since my last post here. I've been keeping busy (but also working on some cool stuff for you all, when the time is right). I figured that it was worth while pointing out a few upcoming talks that I'm going to be giving and conferences that I'll be attending.PHP North WestI'll be a regular attendee at the PHP North West 2012 conference in Manchester, UK on October 5th through the 7th. While I'm doing any scheduled talks, I've got a few lightning talks prepared for the...
The Singing Annoying Thing (Photo credit: DWZ)
Since the dawn of time, circa 1995 AD, PHP and Security have been at constant loggerheads over what priorities programmers should cling to. Programmers, by their very nature, are drawn to getting shit done inexpensively. Building tools, libraries and applications is a time consuming and expensive process and managing that process in the most efficient manner possible has been a focus of untold years of study and experimentation. Interestingly, whereas open...
On the Fortrabbit.com blog, there's a new post looking at a system for multi-stage deployment at a high level, applicable to most of the tools out there.This article targets new developers and developers which never had the chance working with multi versioned websites before. If this fit's you: Read it. Staging is a good tool in your belt you won't regret to know. [...] You, your co-developers, authors and whatnot using [staging] to prepare and test stuff which is to be released into production. In...
Constantin Bosneaga has a recent post to his site that the CodeIgniter users out there could find helpful. It's an example of using the Layout pattern in a CI app to make a more flexible layout thanks to a library (source included in the post).CodeIgniter is great framework by its simplicity. But when I moved from CakePHP, I really missed layout pattern. CodeIgniter documentations offers this way to include non-changing site header and footer. For sure it isn't flexible and does not show page structure...
On NetTuts.com Jonathan Cutrell has posted some ideas for you to consider when designing your enterprise-level applications, regardless of the language(s) they're written in.Organization can make or break the maintainability of an application. With smaller applications, organization is more obviously apparent; however, as the application grows and as the number of application developers and front-end engineers producing code increases, the more confusing organization can become. In this post, we will go...
On PHPMaster.com today there's a new post from Abdullah Abouzekry showing you how to create QR codes (like these) with the help of a PHP library, PHP QR Code.Used widely in various recent applications, QR Codes can be seen on cola cans, business cards, in sushi bars, and in museums. QR Code is a 2-dimensional barcode specification that was invented in Japan. [...] In this article I'll show you how you can easily generate QR Codes from within your PHP application and share some ideas on how and when to...
The this recent post to his blog Reese Wilson looks at using one of the modules of the Zend Framework v2, the ServiceManager, as an inversion of control container in your app.In Zend Framework 1, it was difficult to follow best practices when it came to writing testable code. Sure, you could make testable models, but once you need those models in a controller, what do you do? Zend Framework 2 makes it much easier. In this post, I'll cover the basics of injecting a model into a controller. The main goal...
Derick's MongoDB Tour Wrap-up
Monday, October 1st 2012, 14:00 BST
Over the past two weeks I have been on a whirlwind tour to talk about Profiling PHP Applications (at PFCongres), but mostly about MongoDB at various (PHP) user groups in the South West of the US. 10gen (the makers of MongoDB and my employers) covered my time and flight, and provided me with some beer money.
The tour concept started a few months ago when Ligaya Turmelle suggested that I should come and talk at the...
Latest PEAR Releases:
In the first part of this series I explained how to build a WordPress theme from scratch. Today I will show you how I use widgets and dynamic sidebars in a more efficient and flexible way. About widgets and dynamic sidebars Widgets are small modules or snippets you can place into the sidebar or any [...]
Some time ago I was writing about the
InnoDB Memcache Daemon plugin already for the MySQL server. Back then we had a labs release with a little preview
only. Meanwhile quite some time passed and new developments
were made - just in time for the MySQL 5.6 RC announced
this weekend by Tomas.
The innodb_memcache daemon plugin is a plugin for the MySQL Server end contains an
embedded memcached. This embedded memcached is configured to use MySQL's InnoDB engine
as storage backend. By using this data stored...
I've just released
0.3.1, which brings you
and federated paste forking.
phorkie is a self-hosted pastebin application written in PHP.
Its pastes are editable, may have multiple files and are stored in
Thanks to the help of
Justin J. Novack,
you may login with your OpenID to get pastes assigned to you.
Also, that way your avatar image will be visible in the paste history.
PEAR's OpenID package
is used behind the scenes,...
On Reddit.com there's a recent post answering a question asked about PHP and continuous integration during a project's development.Does anyone have experience with PHP and Continuous Integration? If so, what tools and / or platforms did you use?Suggestions in the comments include:
Codeception for unit testing
the Jenkins PHP template
Travis-CI (more for open source projects)
NetTuts.com has another post for those out there wanting to further their PHP unit testing knowledge. In this new tutorial, Csaba Patkos introduces you to mocking objects with PHP Unit - a powerful method to help test some of the more difficult things.There are two styles of testing: "black box" and "white box" styles. Black box testing focuses on the object's state; whereas, white box testing focuses on behavior. The two styles complement each other and can be combined to thoroughly test code. Mocking...
Josh Adell has a new post today looking at the "powerful combination" of using traits and interfaces in PHP applications. He shows how, despite traits not implementing the interface directly, they can be used to make other classes adhere to them simply by "using" them.If you're not using interfaces in PHP, you are missing out on a powerful object-oriented programming feature. An interface defines how to interact with a class. By defining an interface and then implementing it, you can guarantee a...
Latest PHP Tweets