PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 1 to 20 of 256

Immutable Value Objects in PHP

Immutable Value Objects in PHP
Yesterday I tweeted: Modern object-oriented programming languages need support for immutable Value Objects. #DDD The aoDDDa in that tweet stands for Domain-Driven Design. There were several interesting responses to this tweet. Kevin Schroeder thought that it made a lot of sense but pointed out that aoneeda was a bit of a strong word. I should have instead said that this would be a aousefula feature. Matthew Weier O'Phinney shared an example of making an immutable object in PHP. Ralph Schindler suggested...

aY Optimizing image display using a bin-packing algorithm - Part deux

aY Optimizing image display using a bin-packing algorithm - Part deux
In the first blog post in this series, I introduced the concept of bin packing and showed how it can be used to optimize the arrangement of an arbitrary group of images so that they occupy the list amount of space possible. The result, however, is-well, ugly, asAthose who had the guts to give my code a try will have found out. So, good concept, ugly output. In this second post, I'm going to show you how to improve the quality of the image display and, in the process, we're going to stretch the concept of...

Keith Casey's Blog: Where Open Source Fails

Keith Casey's Blog: Where Open Source Fails
In a new post to his blog today Keith Casey has voiced some of his opinions on where he thinks most Open Source software efforts fail in their goals of making good, quality software that's well-developed and useful.Earlier this week, I unsubscribed from the mailing lists of a pair of Open Source projects. About two years ago when I found the projects, they involved fascinating topics in under served niches. One of those niches - the one customer/user-facing - is still there and under served, but that's...

Phil Sturgeon's Blog: Power dump() on your PHP applications

Phil Sturgeon's Blog: Power dump() on your PHP applications
Phil Sturgeon has a quick new post with a code snippet that could make your debugging life a bit simpler - a "dump" function that can give you a bit more information about your error than a standard var_dump.When trying to work out what the hell is going wrong in your PHP application the first thing most of us start doing is madly start var_dump()'ing everything possible to work out where the problem is. var_dump() is fine, but by default it comes out in one line. So then we need to echo tags. Then we...

PHPBuilder.com: Testing with the Zend Framework: How to Get Started

PHPBuilder.com: Testing with the Zend Framework: How to Get Started
On PHPBuilder.com today there's a new tutorial from Jason Gilmore about working with Zend Framework applications and how to test its functionality with the help of a library he's created.Thankfully, the software community has put a great deal of time and effort into developing automated testing approaches. In fact, most Web frameworks incorporate a native testing solution that can be used to test a wide variety of website attributes and behaviors. One such framework, the Zend Framework, integrates the de...

PHPClasses.org: Lately in PHP podcast, Episode 5

PHPClasses.org: Lately in PHP podcast, Episode 5
The PHPClasses.org site has released their latest podcast in their "Lately in PHP" series. This episode features an interview with Jason Roberts as well as the usual host of PHPClasses-related content.On the episode 5 of the Lately in PHP podcast, Manuel Lemos and Ernani Joppert have as guest Jason Roberts, developer of the upcoming Web based application generation AppIgnite. They have discussed several topics of interest like PHP code generation tools for speeding up PHP development, the video of Rasmus...

Zend Developer Zone: ZendCon 2010: 3 Questions for Michaelangelo van Dam

Zend Developer Zone: ZendCon 2010: 3 Questions for Michaelangelo van Dam
On the Zend Developer Zone there's a new interview with Michaelangelo van Dam, the guy running the show for this years Zend/PHP Conference's unconference. Cal asks him three questions about him and his involvement with the event.It's really hard for me to interview someone like Michaelangelo van Dam, it's like interviewing a celebrity. He is so well known in the Zend Framework community and the PHP Community at large. he is one of the organizers of the PHPBenelux User Group and their annual conference....

Site News: Blast from the Past - One Year Ago in PHP

Site News: Blast from the Past - One Year Ago in PHP
Here's what was popular in the PHP community one year ago today:Giorgio Sironi's Blog: Practical Testing in PHP (Series) I-Programmer.info: Building a Joomla component using Eclipse for PHP NETTUTS.com CodeIgniter from Scratch Day 7: Pagination Rafael Dohms' Blog: PHP Security: Are you paying attention? PHP in Action Blog: Bad code is good for you? ProDevTips.com: This is what's wrong with PHP PHPBuilder.com: PHP Filters: An Important Security Feature php|architect Podcast: Interview with Andrew Sampson...

ZendCon 2010: 3 Questions with Matthew Weier O'Phinney

ZendCon 2010: 3 Questions with Matthew Weier O'Phinney
If you have hung around the PHP community for any amount of time, you've probably heard of MWOP, Zend Framework's Supreme Allide Commander, the man, the myth, the legend, Mr. Matthew Weier O'Phinney. (MWOP asee how that works?) Matthew is a busy man these days working on Zend Framework 2.0, speaking at local user groups and in all his spare time being a dad and husband. I recently caught up with up with Matthew and in between asnwering my Zend Framework tech support questions, he agreed to answera3...

Zend / PHP Conference

Zend / PHP Conference
The 6th Annual Zend/PHP Conference will bring together PHP developers and IT managers from around the world to discuss PHP best practices and explore new technologies. At ZendCon, you'll learn from a variety of technical sessions in 9 tracks, renowned speakers, in-depth tutorials, an Exhibit Hall featuring industry leaders and unique networking opportunities. Learn PHP best practices for architecture, design and development Discover new advances in the PHP language and how to best...

aY Optimized image display using a bin-packing algorithm - Part one

aY Optimized image display using a bin-packing algorithm - Part one
I am currently working on a project that requires (among other things) the ability to display a series of images, whose size is unknown at design time, in such a way that as many of them are visible on the screen at any given time. This is an interesting problem for a number of reasons: first, the solution can be applied to a number of different problems that have nothing to do with images; second, a little tweaking makes this problem a great gateway to building a cool image-display system; and third, it...

PHP Manager 1.0 for IIS 7 - stable release

PHP Manager 1.0 for IIS 7 - stable release
PHP Manager is a tool for IIS 7 that greatly simplifies installation, configuration, management and troubleshooting of PHP in IIS. A beta release of the tool has been published a month ago and since then it has been downloaded nearly five thousand times. Today I am releasing the final stable build of PHP Manager 1.0 for IIS 7, which includes new features and fixes for the bugs reported in the beta release. Both x86 and x64 builds of PHP Manager 1.0 for IIS 7 can be downloaded from the project's page at...

PHPMagazine.net: Hello PHPUG ?!

PHPMagazine.net: Hello PHPUG ?!
On the PHPMagazine.net site there's a new article about PHP user groups and some of the resources that can be used to help find one in your area.Part of this community a lot of core developers, documentation editors, web application developers, hackers, Quality assurance team, tons of open source projects, PHP UG around the world, and many many other people contributing each one in its category, and even friends and family! Users Group are an active element of the PHP ecosystem, and I believe that...

PHP-Code.net: Securing PHP Applications Part II - Securing PHP code

PHP-Code.net: Securing PHP Applications Part II - Securing PHP code
On PHP-Code.net they've posted the second part of a series looking at securing your PHP applications from potential problems that security flaws could cause for your site. (You can find part one here).There are a lot of books treating this issue. So, why another post about this subject. Well, here a try to cover this problem in a short way so that you don't have to read hundreds of pages or to search all over the Internet for this. These being said, you must know that securing a PHP application is not an...

Fast Multiple String Replacement in PHP

Fast Multiple String Replacement in PHP
At work, we added a language filter to Ning Pro last month. It lets Network Creators have naughty words (for the Network Creator's definition of "naughty") replaced with * characters. A straightforward way to do this in PHP is to pass an array of words to look for and their replacements to a function like str_replace() or str_ireplace(). Or, similarly, use a regular expression that gloms the search terms together (and potentially checks word boundaries.) There are assorted WordPress plugins that work...

Amazon Web Services Blog: New AWS SDK for PHP

Amazon Web Services Blog: New AWS SDK for PHP
On the Amazon Web Services blog there's a new post about the release of their new AWS SDK for PHP that use can use to directly access their web services features from your PHP applications.The first release supports a large subset of our infrastructure services including the Amazon Elastic Compute Cloud (EC2), the Amazon Simple Storage Service (S3), Amazon CloudFront, Amazon CloudWatch, Amazon SimpleDB, the Amazon Simple Notification Service (SNS), the Amazon Simple Queue Service (SQS), as well as Amazon...

asp.net oracle padding flaw - question?

asp.net oracle padding flaw - question?
By now many of you have heard of the ASP.NET Oracle Padding Flaw. There's a number of posted workarounds, and MS will be issuing a patch soon to fix things. From threatpost.com: The problem lies in the way that ASP.NET, Microsoft's popular Web framework, implements the AES encryption algorithm to protect the integrity of the cookies these applications generate to store information during user sessions. A common mistake is to assume that encryption protects the cookies from tampering so that if any data...

Zend Developer Zone: Manipulating Configuration Data with Zend_Config

Zend Developer Zone: Manipulating Configuration Data with Zend_Config
On the Zend Developer Zone there's a new tutorial from Vikram Vaswasi about working with the configuration data from your files (in multiple formats like XML and the more traditional INI) with the help of the Zend_Config component of the Zend Framework.Thus far, I'd been using a hand-rolled library for this task; however, this library was now fairly dated and didn't take advantage of many of the newer PHP 5.x features and so, I'd been looking for a more modern replacement. Zend_Config seemed to meet my...

Lorna Mitchell's Blog: Authenticating with OAuth from PHP

Lorna Mitchell's Blog: Authenticating with OAuth from PHP
Lorna Mitchell has posted about her experiences with getting OAuth working with her PHP application by way of the PECL package that adds support into PHP.I've been looking into OAuth recently and really like what I see, so I started looking at actually starting to play with something that uses it (and isn't twitter). In the pursuit of this, I spent some time walking through the process of how to actually authenticate using OAuth, as a client.She briefly touches on the consumer key and secret and how...

PHP SDK for Amazon Web Services

PHP SDK for Amazon Web Services
Yesterday, Jeff Barr announced Amazon's own PHP SDK for their web services - own, because AWS hired CloudFusion's lead developer earlier this year (in March) and I guess after a while they decided it was time to incorporate his open source efforts into the company. The full story is on getcloudfusion.com. So what?What's more than just pretty interesting about all of this, is that not only is the AWS PHP SDK hosted on Github (bonus points for sure), but since it implements almost the entire API of all...