PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 4221 to 4240 of 6889

Dependency Injection Container Refactorings, Part One

Dependency Injection Container Refactorings, Part One
(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: transaction aware load balancing, sort of

PECL/mysqlnd_ms: transaction aware load balancing, sort of
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...

Project: Guzzle - RESTful web service client development framework

Project: Guzzle - RESTful web service client development framework
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...

Zend and RightScale Deliver a Customizable PHP PaaS: Deploy and Scale Industrial Strength PHP in the Cloud of Your Choice

Zend and RightScale Deliver a Customizable PHP PaaS: Deploy and Scale Industrial Strength PHP in the Cloud of Your Choice
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...

Sftuts.com: Using Assetic in Symfony2 for CSS compression

Sftuts.com: Using Assetic in Symfony2 for CSS compression
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's Blog: The Value of Null

Dan Horrigan's Blog: The Value of Null
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's Blog: Symfony2, what I think is still left to do

Lukas Smith's Blog: Symfony2, what I think is still left to do
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...

How To Synchronize Your PHP and MySQL Timezones

How To Synchronize Your PHP and MySQL Timezones
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...

Voices of the ElePHPant: Interview with Josh Butts

Voices of the ElePHPant: Interview with Josh Butts
On the Voices of the ElePHPant podcast, Cal has posted his latest interview, this time with Josh Butts, an organizer of the PHP user group in Austin, TxCal's "three questions" for Josh are: What is the most difficult aspect of running one of the larger PHP user groups? What is the most successful thing you've done in the group? How do you guys manage to play nice with the other technology groups in Austin? As usual, you can either listen in-page, by downloading the mp3 or subscribing to their feed.

Community News: Latest PECL Releases for 04.19.2011

Community News: Latest PECL Releases for 04.19.2011
Latest PECL Releases: rrd 1.0.0 hidef 0.1.7 rrd 1.0.1

Symfony2, what I think is still left to do

Symfony2, what I think is still left to do
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. finish form layer rewrite (and close the many related tickets and PRs) attempt to automatically determine service scopes clean up Security component...

Escaping MySQL strings with no connection available

Escaping MySQL strings with no connection available
We're all being drilled over and over again to always use mysqli::escape_string, PDO::quote, or preferably prepared statements when escaping user-supplied strings for use in MySQL queries. The downside to these methods is that they only work when there's an open connection to a server. So what if there's no connection available? In traditional Unix philosophy I'm writing an export script that doesn't execute SQL statements right to a server, but sends them to stdout. Forcing people to make a connection...

PHP replication and load balancing plugin: master_on_write, documentation

PHP replication and load balancing plugin: master_on_write, documentation
Hours ago, I have committed the first documentation draft for PECL/mysqlnd_ms. The mirrors should show it on Saturday. PECL/mysqlnd_ms is a replication and load balancing plugin for the mysqlnd library. Its latest feature, master_on_write, helps to work around the issue of replication lag. If master_on_write=1, the plugin ...

Zend Developer Zone: Book Report: Easy PHP Websites with the Zend Framework

Zend Developer Zone: Book Report: Easy PHP Websites with the Zend Framework
On the Zend Developer Zone Cal Evans has written up a "book report" about a new release from Jason Gilmore, "Easy PHP Websites with the Zend Framework". Cal's review covers some of the good, the bad and the "interesting" he found while reading through the book.Those readers who know me, know that I'll pass on writing a review on a book I don't like. Having written one (and have another in the works), I know the work that goes into even a bad one. So instead of denigrating someone else's work, I'll simply...

A few podcast goodies to kick your week off right

A few podcast goodies to kick your week off right
I love podcasts. I listen to them in most of my spare time. Walking the dog, cutting the grass or just cooling my heels waiting on the next great thing that is happening, i can usually be found with ear-bud inserted and MP3 player handy, ready to use the time constructively. Recently, I've listened to a couple of good episodes of my favorites acasts. Click on in, I'll share with you so you can enjoy them as well.

A few podcast goodies to kick your week of right

A few podcast goodies to kick your week of right
I love podcasts. I listen to them in most of my spare time. Walking the dog, cutting the grass or just cooling my heels waiting on the next great thing that is happening, i can usually be found with ear-bud inserted and MP3 player handy, ready to use the time constructively. Recently, I've listened to a couple of good episodes of my favorites acasts. Click on in, I'll share with you so you can enjoy them as well.

DZone.com: Profiling a PHP Application

DZone.com: Profiling a PHP Application
On DZone.com's Web Builder Zone today there's a new post from Eric Hogue talking about some of the tools you can use to profile your PHP application and squeeze that much more performance out of it (or maybe just find that pesky, elusive bug).When developing web applications, we often run into performance issues. People often blame PHP or MySQL for bad performance, but in most case the answer is not that easy. Blindly trying to optimize random parts of our applications can lead to some uneven results....

Thijs Lensselink's Blog: VIM for a PHP Developer

Thijs Lensselink's Blog: VIM for a PHP Developer
Thijs Lensselink has a new post to his blog today showing a step-by-step guide to setting up a vim editor environment to provide a richer experience than the plain-text defaults for working with your PHP code.For my coding work i mostly use Zend Studio. And i am a big fan of this IDE. But i also do a lot of work in the shell. And that asks for at least basic vim knowledge. My colleague is a big vim fan. And does most of his work in vim. So last week i was compiling a cheat-sheet for my self. And came...

PHPComCon Web Services Tutorial

PHPComCon Web Services Tutorial
If you are attending my Web Services tutorial at PHP Community Conference (if not, probably nothing for you to see here) later this week then you might like to download the sample code. I'll be referring to this and inviting you to "play along" as I go creating services during the session on Thursday - see you there!

Robert Basic's Blog: Grouping Zend Framework controllers in subdirectories

Robert Basic's Blog: Grouping Zend Framework controllers in subdirectories
Robert Basic has a new post today showing you how you can group your controllers in your Zend Framework application into subdirectories for easier organization.Thanks to a discussion on the Zend Framework mailing list I learned about a new feature, a feature that allows for grouping action controllers in subdirectories! Well, this is more of an unknown and undocumented feature than new, as it is the part of the framework for at least 3 years. Why am I so hyped about this? Because it allows for better...

Latest PHP Tweets