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...
Popular posts from PHPDeveloper.org for the past week:Michael Maclean: Why one-line installers are a bad idea
PHPMaster.com: Building Your Own URL Shortener
Community News: Atlanta PHP October Meeting - Jacob Terry on Tracking in Applications
Tecmint.com: Install Apache, MySQL 5.5.27 & PHP 5.4.7 on RHEL/CentOS 6.3/5.6 & Fedora 17-12
Cory Fowler: Enabling PHP 5.4 in Windows Azure Web Sites
Igor Wiedler: Binary parsing with PHP
Gonzalo Ayuso: The reason why singleton is a "problem" with PHPUnit
On the Silver Lining blog (a MSDN Windows Azure related site), there's a recent post showing how you can enable XDebug on your Azure instance to help with debugging your application.In this post, I'll cover how to run XDebug (including the profiler) in Windows Azure Web Sites. Enabling XDebug in Windows Azure Web Sites is as simple as enabling an extension. However, enabling an extension for the built-in PHP runtime is slightly different than doing so for a custom PHP runtime. I'll cover both scenarios...
On the NetTuts.com site today there's a new screencast posted (by Jeffrey Way) that gives you a hands-on look at using PHPUnit to write and execute tests on your code.In this screencast, we'll build a relatively simple class, using TDD techniques. Along the way, we'll discuss various PHPUnit methods, how to create mock objects, and more! I encourage you to work along; it's the best way to learn!If you're new to unit testing this is a good way to start. He uses the Laravel framework as a base for the...
The Codeception blog (a BDD testing tool) has a new post on using their Locator class to create more complex tests based on XPath or CSS selectors.In the latest Codeception 1.1.4 new Locator class was introduced. Basically it should simplify your life in writing complex XPath or CSS locators. Right now it has minimal, yet useful functionality.The post shows how to combine more than one item for location with either a tag, CSS-based or XPath-based selector. It also shows how to use the "tabindex" method...
Gary Hokin has posted the first part of a series he's doing to introduce those Zend Framework v1 developers out there to the latest version of the framework, Zend Framework v2.Having worked with ZF1 for a lot of years, I've been watching the development of ZF2 with interest. I've tried nearly every version, from the heady days of the pre-Skeleton App, right through the betas and release candidates. With the imminent release of ZF2 proper, I thought I would share with you some of the most obvious...
My slides introducing PHP 5.4.7 from the talk at Guelph PHP user meetup are now available online and can be downloaded at: http://ilia.ws/files/nena_php54.pdf
Here's what was popular in the PHP community one year ago today:Project: Warden: A user database authorization package for FuelPHP
PHPMaster.com: File Uploads with PHP
Johannes Schlüter's Blog: MySQL Query Analyzer and PHP
PHPMaster.com: Preventing Cross-Site Request Forgeries
Wojciech Sznapka's Blog: Loosening dependencies with closures in PHP
Rasmus Lerdorf's Blog: ZeroMQ + libevent in PHP
PHPMaster.com: Introducing Superglobals
PHPClasses.org: Lately in PHP Episode 16 - APC in PHP, MODX CMS, Top...
It's great to have access to such a great repository of WordPress plugins, but sometimes a great plugin is just aotoo mucha for a smaller task of function. Like social media buttons, they have in fact a very simple function and most buttons require only a few rows of code. If a complex plugin doesn't [...]
On Reddit.com there's a recent post questioning the (recently) common saying that PHP developers should avoid static methods when concerned about testability:I get it: testing is important, and building your codebase in a manner that is easy to test should be a priority. However, sometimes I feel like I have to compromise on the elegance of my code in order to maintain testability. Cases where perhaps a static method makes sense, but end up having to perform some coding acrobatics in order to avoid it....
Thomas Hunter has posted a (nice long) book review of the Packt Publishing book "CouchDB and PHP Web Development" to his site.When I first picked up this book, I was expecting a boring, text-book approach to code examples for PHP talking with CouchDB. Boy was I wrong. What I found was a book that has you build a complete working application. And by complete, I mean you'll add the Twitter Bootstrap framework and it will be sexy.He mentions parts of the app you'll create - a PHP framework, 3rd party...
As Ars Technica reports, there was a recent exploit found on the SourceForce website's installation of phpMyAdmin that allowed an attacker to POST anything to the site to be executed.Developers of phpMyAdmin warned users they may be running a malicious version of the open-source software package after discovering backdoor code was snuck into a package being distributed over the widely used SourceForge repository. The backdoor contains code that allows remote attackers to take control of the underlying...
On his site today Ulf Wendel talks about SQL injection and some comments that came up during a recent webinar about common MySQL mistakes PHP developers make.Never trust user input! Injection is a threat . You are the new web developer, aren't you?. Never trust user input is the first rule I had to learn as a web developer in anchient times. Injection can happen whenever user input is interpreted or used to compose new data. A quick recap of the #3 mistake from todays Top 10 MySQL Tips and Mistakes for...
PHP Array Search
PHP OAuth API
Igor Wiedler has a new post to his blog showing how to work with binary data in your PHP applications a few different built-in functions including unpack and bindec.Binary operations in PHP are a bit strange. Since PHP was originally a templating layer for C code, it still has many of those C-isms. Lots of the function names map directly to C-level APIs, even if they work a bit differently sometimes. For example, PHP's strlen maps directly to STRLEN(3), and there are countless examples of this. However,...