This is what I like about the PHP community: people work out similar ideas and share what they've learned in the process. Sometimes people pick up ideas and work them out, sometimes people just continue the conversation.And I believe Lars Tesmer has done the latter, where he blogs on testing PHPUnit itself and the lessons learned in that process.Thank you Lars for sharing your lessons.
The PHP Barcelona User Group is proud
to announce that the 5th edition of the PHP
Barcelona Conference is here!
There will be 30 one-hour talks and workshops in two days with three
parallel tracks, covering many PHP development subjects such as Application
Scalability, High Performance, Frameworks and IDEs, Continuous Integration,
Unit Testing, Best Practices, Cloud Computing, and many more topics and
The conference will take place from the 28th to the 29th of October and will...
After a short sprint for PHP 5.4 beta, which is on its way with mysqlnd as a configuration default for all three PHP MySQL extensions, we continued working on the mysqlnd replication plugin (PECL/mysqlnd_ms). Please, find a high level overview presentation further below in this blog post. Because replication ...
Johannes Schluter has shared a handy mysqlnd plugin that he's written up that does two common things at once when you're pulling data from your database and pushing it into JSON - a mysqlnd_query_to_json function.In my spare time I'm currently writing a shiny Web 2.0 application where I'm heavily using AJAX-like things, so what I do quite often in this application is, basically this: Check some pre-conditions (permissions etc.) then select some data from the database, do a fetch_all to get the complete...
Kevin Schroeder has a new post to his blog today with a huge list of podcasts for your listening pleasure - the complete list of ZendCon 2010 sessions as recorded at last year's event.I've decided to [...] just upload them all so that you can download them all in preparation for this year's ZendCon. As you listen to these paragons of PHP goodness think of how wonderful it would be for you to be there in person and talk to these founts of wisdom. You will find several of the speakers from last year at...
Copyright A 2011 http://www.prodevtips.com. Visit the original article at http://www.prodevtips.com/2011/09/14/mysql-replication-in-php-on-the-same-machine/.I just realized I needed to replicate some data from one database to another, but only certain tables.... Read More
Lars Tesmer is currently in the process of learning Ruby. He' been working through the tutorials and some sample scripts and has come across some pitfalls along the way. In his latest post he shares four of them that've stood out in his development so far.I'm currently learning Ruby. In this post I'll list some pitfalls for programmers coming from PHP that would probably cause some confusion if you aren't aware of them. This list is by no means complete, while I learn Ruby I'll very probably encounter...
In a new post to his blog Marco Tabini offers some quick advice to younger developers looking to make their mark in their profession (PHP-related or not). He shares five tips to keep in mind as you hone your process and write your code.Every now and then, I get asked by developers who are just getting started in the trade if I have any suggestions to help them out - favourite language, tips and tricks, and the like. None of these things matter, really, but there are a few things I wish I had known when I...
Take, if you would, a look at your credit card. Unless you come from a different planet, chances are that it, like mine, has a series of digits separated by spaces. Depending on which kind of card you're looking at, these numbers may be grouped in different ways, but, generally speaking, this is probably a valid statement for every kind of credit card in existence.
Those spaces are there for a very specific purpose: they break the visual flow of your credit card number, providing your brain with anchors...
Abstract HTTP Client
True DOM abstraction
MySQL V class
Some time ago I was already writing about the power included with mysqlnd plugins and how they can they can be used transparently to help you with your requirements without changing your code. But well, as mysqlnd plugins in fact are regular PHP extensions they can export functions to the PHP userland and providing complete new functionality.
In my spare time I'm currently writing a shiny Web 2.0 application where I'm heavily using AJAX-like things, so what I do quite often in this application is,...
On the .net magazine site (yes, really) there's a recent post from Brian Suda about creating SVG images with PHP thanks to the GD functionality that's included in every release.If you're working online, then canvas springs to mind. It allows you to draw raster graphics quickly and easily. If you want, there are also plenty of image code libraries that can generate GIFs, JPEGs and PNGs on request. But what if your target isn't always online? What if you're aiming for print? Then you could use a raster...
The Ibuildings techPortal has started back up with their DPC Radio recordings from last year's Dutch PHP Conference with a recording of a keynote from Helgi, "First Class APIs".APIs are commonly an afterthought, like a hot tub awkwardly attached to a house - a shoehorned approach that produces a suboptimal app with scarce support that lacks documentation. In effect, APIs are the ugly stepchild of the Web.He talks about why APIs are commonly an afterthought and some suggestions on how you can change...
Christian Weiske has a quick post about a handy PEAR-related project that might be in risk of fading away - a plea for help with pearhub.org.Troels Knak-Nielsen, father of pearhub, wrote to the pear-dev mailing list: "Unfortunately I have absolutely no time at hand for this project and probably won't for a foreseeable time. I still think it fills a need, so I'd be happy to hand over the keys to anyone who will take it upon them to move the project forward. I'll try to assist as best as I can, but...
Matthew Weier O'Phinney, lead on the Zend Framework project, has a new post to his blog talking about the event manager in the Zend Framework, v2 and how to use it in a refectored version of a previous post.Earlier this year, I wrote about Aspects, Intercepting Filters, Signal Slots, and Events, in order to compare these similar approaches to handling both asychronous programming as well as handling cross-cutting application concerns in a cohesive way. I took the research I did for that article, and...
In a new post to his blog Sameer Borate looks at using the Underscore.php library to do a little functional programming in PHP. Underscrore.phpis a PHP port of Underscrore.js.Underscore.php provides a utility library for PHP that provides a lot of the functional programming support that a programmer would expect in Ruby, but without adding much overhead during execution. The only caveat is that underscore.php requires PHP 5.3 or greater. Although you could accomplish some of the things using PHP's built...
Every now and then, I get asked by developers who are just getting started in the trade if I have any suggestions to help them out-favourite language, tips and tricks, and the like.
None of these things matter, really, but there are a few things I wish I had known when I started out that have nothing to do with the mechanics of software development.1. Be humbleYou just finished college with full marks. You know hundreds of algorithms backwards. You've read Don Knuth's seminal programming series...
Latest PECL Releases:
Troels Knak-Nielsen, father of
pearhub, wrote to the
pear-dev mailing list:
I launched pearhub.org a year and a half back
and it has been running fairly
nicely since. There are however a number of minor bugs and I'm getting
various (quite reasonable) requests to better these about one a week. On top
of this, the current server is about to die, so the project needs to move
off to a different platform. Unfortunately I have absolutely no time at hand
for this project and probably...