|
Sponsored Link
|
On the WebTutor.pl site they've posted the second part of their series looking at the benchmark results from their tests running HipHop. You can find their first post with some of the introductory setup and information here.In previous article I measured the performance of HipHop for PHP by performing some tests downloaded from the shootout.alioth.debian.org website. Unfortunately the test list was incomplete. Only six tests were selected to avoid potential incompatibility issues with the HipHop...
Replication is as old as life on earth. No life without replication. MySQL replication is as old as MySQL, almost. No MySQL without replication. The PECL/mysqlnd_ms 1.0.0 alpha release is brand new. My dream, no PHP without the mysqlnd library replication and load balancing plugin, which works ...
The team that has brought you the infamous PHP ElePHPants in the past is back with another round - the 6th generation of the cuddly PHP mascot in both traditional blue and pink.April 19, 2011 PHPère is happy to show you the first pictures of two premature elePHPant the 6th generation of PHP. As you can see ... ElePHPant the blue, is in great shape and has found its new home very pleasantThese are shots of the first turnouts of this latest batch and the rest will follow in June/July of this year. Those...
In a new post to the SitePoint PHP blog today Craig Buckler looks at a method for synchronizing your time between your PHP application and it's MySQL backend to make date handling a bit easier - no messy code-based timezone changes needed.Many developers solve the problem by shifting all date/time responsibility to PHP. They may also convert dates to Unix timestamp integers for simpler handling, although you should be wary of the Y2K38 Bug.They show a handy tip so you won't have to worry quite so much...
A new startup called Kohort is looking to add a PHP developer to their team here in Burlington, Vermont. The job description is as follows:
We're a new startup with some venture backing. We're looking to add an experienced developer to help us out for the next five weeks (and possibly more). Qualifications are:
experienced PHP hacker (5+ years)
full understanding of MVC frameworks (codeignitor, cake, symfony, zend, kohana or the like)
comfortable with the LAMP stack
understanding of git
able to plug...
New on his blog today Lars Strojny has posted the first part of his look at dependency injection and how he's been using it to do some refactoring in his applications. He uses the Symfony DI container in his examples, but really you can apply the principles to just about any of the other current DI offerings.Working heavily with the Symfony2 Dependency Injection Container, I feel that we found some typical refactorings towards a DI container that emerge during the introduction of such a component. I want...
The inaugural Brooklyn Beta was the first collaboration between Analog and Fictive Kin. We're both groups of friends making things we love, and we love working together. We even have a portmanteau picked out for what to call ourselves when we join together as one. Anakin. (As Cameron likes to point out, it's better than Fictive Log.)
Since we love working together so much, we're doing it again. On the 12th, 13th, and 14th of October, Brooklyn Beta will return to a place we now call home, the Invisible...
On DZone.com today there's a new post from Eric Hogue talking about the love-hate relationship he has with PHP (as a developer of five years with it).I have been programming in PHP for 5 years now. I did not choose this language, I had to learn it to work on the code of the company my bosses bought. Since I started, I heard many rants about how bad PHP is. Some where valid, but a lot of them are just blaming the language for bad code written by bad programmers. I am by no mean an expert in programming...
In a recent post to his blog Brian Swan shows you how to use the Storage Emulator for Azure with PHP via their provided SDK. It's a quick post but it has a helpful code snippet if you've been struggling with getting it set up.This is a short post to address this question: How do I use the local Storage Emulator (formerly known as Development Storage) when using the Windows Azure SDK for PHP? The Windows Azure Command Line Tools for PHP provide an option for running an application locally in the Compute...
icI18n
CRECAPTCHA
Dijkstra Implementation
Image Upload by Flo
Virtual interface generator
Visits
Saff Request
XML-Writer
Powerful Caching Class
Offset CodeBook Mode 2.0
Binary Array
I almost made a critical mistake on the production mysql database for one of my projects yesterday, which definitely would not have been a Good Thing if it had happened; even though I do have a custom prompt set up for mysql - when they're all so similar you don't always take heed.
So now, along with having the mysql prompt defined as prompt='\h@\u (\d) a€˜ in the [mysql] section of my ~/.my.cnf file (so host, username and database name are included in the prompt), I have also installed rlwrap and set up...
For my own benefit, if nothing else, since I keep seeming to need this snippet of code, I thought I'd encapsulate a Xapian More Like This/Find Similar example in a very brief blog post.The code is stolen out of my own Habari MultiSearch plugin:The code is very simple once you get beyond the clunkiness of the Xapian API. We create a relevance set for the document we want to find similar ones to (that's the one with id = $search_id), and from that create an eset of the most important terms (Xapian does the...
(c) Jil A. Brown
Working heavily with the Symfony2 Dependency Injection Container, I feel that we found some typical refactorings towards a DI container that emerge during the introduction of such a component. I want to write down the preliminary results of trying to systematize more or less as a draft. I will use the Symfony2 DI container configuration as an example but most of the refactorings should be applicable to other containers as well, some of them even to dependency injection without a...
PECL/mysqlnd_ms is now transaction aware, sometimes. A new experimental configuration option trx_stickiness=master disables load balancing if autocommit mode is turned off via API. This makes the mysqlnd library plugin transaction safe. Unfortunately it requires PHP 5.3.99 and, it can be fooled by using SQL to control autocommit. It requires some discipline to use.
Past and today: SQL hints for transactions
By default the PHP replication and load balancing plugin (mysqlnd_ms) is not transaction...
Michael Dowling tipped us off to Guzzle, a RESTful web service client framework that lets you build testable web service clients quickly and easily.Guzzle helps you speed up the process of creating a RESTful web service client by giving you full control of HTTP requests and access to advanced features like persistent HTTP connections, parallel requests, exponential backoff, over the wire logging, MD5 validation, cookie jars, and a caching forward proxy.Installing the framework is as easy as grabbing the...
The industry is going through a major reset as a result of Cloud Computing. Economies of scale, driven by public Cloud infrastructures in conjunction with pay-as-you-go pricing models, create a very strong motivating factor for companies to move more of their workloads into the Cloud. In addition, Cloud promises to deliver unprecedented agility and time-to-market which makes it all the more appealing. Today, more than 35% of the Web workload runs on PHP (some believe it is closer to 55%). It is therefore...
On Sftuts.com today Albert Jessurum has taken a look at Assetic, a tool included in the upcoming Symfony2 framework, as a means for compressing the CSS on a site. It's a simple four-step process and he includes each command you'll need along the way.Symfony Standard comes bundled with a great library called Assetic for Assets Management in PHP 5.3 (CSS, js, and even image optimization coming soon) developed by Kris Wallsmith. We will be using it to compress our CSS files, thus reducing the time required...
Dan Horrigan has a new post to his blog talking about the value of null - a quick summary about when and where null should be used. Null's a value too, after all...Let me start off by saying this article is about PHP and PHP alone. Other languages handle this sort of thing differently (and better). In PHP many people (and a few frameworks) return FALSE from methods when the requested value does not exist. However, I am here to tell you that if you do this, you are doing it wrong. Plain and Simple.In his...
Lukas Smith has posted some of the things he thinks the Symfony2 framework still has left to do before it can be released in a stable form.The goal of this blog post is to number one serve me as a todo list of stuff that I personally think needs to be fixed before Symfony2 can be released. Hopefully it will also entice some people to help out with these tasks. I am focusing on the medium to large tasks. There are of course still a fair number of smaller fixes that need to be applied.Items on the list...
PHP and MySQL are separate processes with their own default timezone configurations. You're unlikely to run into timezone issues during development or if you're deploying a single web application to your server. In that situation, PHP and MySQL can use the server's time settings.However, what if:Your application can be set to the user's timezone?You're running two or more applications with different timezone requirements?Your application is installed on a shared server and you can't set the default...
|
|