PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 21 to 40 of 183

DZone.com: Testing PHP scripts

DZone.com: Testing PHP scripts
In this new post to DZone.com, Giorgio Sironi talks about a method of testing that's non-invasive when you're in a chicken-and-egg kind of situation:The legacy code dilemma, however, is always present: you can't refactor the code before putting up some tests on it to avoid regressions and putting your application offline. At the same time, you can't easily unit test the code until some refactoring is introduced.He suggests making copies of some files to allow you to make small changes where needed to...

PHPMaster.com: An Intro to Virtual Proxies, Part 2

PHPMaster.com: An Intro to Virtual Proxies, Part 2
Following up on his previous article, Alejandro Gervasio has a new post to PHPMaster.com with the second part of his series on using virtual proxies in PHP.Resting on the foundation of Polymorphism (dynamic Polymorphism, not the ad-hoc one often achieved through plain method overriding), Virtual Proxies are a simple yet solid concept which allows you to defer the construction/loading of expensive object graphs without having to modify client code.He shows how to create a collection of domain objects that...

Kevin Schroeder's Blog: ZF2 Dependency Injection: Managing Configuration - Part 1

Kevin Schroeder's Blog: ZF2 Dependency Injection: Managing Configuration - Part 1
Kevin Schroeder has a new post talking about dependency injection in a Zend Framework v2-based application and managing your configurations.In my previous blog post I showed how you could provide parameters to object that you're pulling from a DiC and have them populated in the resulting object. As cool as that is, it's not a massive saving as you need to manually inject the parameters into the DiC. You can often do the same thing by setting up the DiC ahead of time to get the object with those...

PHP.net: PHP 5.3.11 And PHP 5.4.1 Released!

PHP.net: PHP 5.3.11 And PHP 5.4.1 Released!
The PHP project has officially released the latest versions of the language - PHP 5.3.11 and PHP 5.4.1:The PHP development team announces the immediate availability of PHP 5.3.11 and PHP 5.4.1. These releases focuses on improving the stability of the current PHP branches with over 60 bug fixes, some of which are security related. [...] For a full list of changes in PHP 5.3.11 and PHP 5.4.1, see the ChangeLog. For source downloads please visit our downloads page, Windows binaries can be found on...

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:PHPBuilder.com: Introducing the Yii PHP Framework Symfony Blog: Symfony2: Getting easier PHPRiot.com: Reducing a Map Path Using Douglas-Peucker Algorithm Chris Jones' Blog: Malicious website use will never go away: how do you manage it? Vito Chin's Blog: Book: PHP Development in the Cloud SitePoint PHP Blog: Simple Object Iterators in PHP James Cohen's Blog: How to Avoid Character Encoding Problems in PHP Zend Developer Zone: My Favorite...

PHP 5.3.11 And PHP 5.4.1 Released!

PHP 5.3.11 And PHP 5.4.1 Released!
The PHP development team announces the immediate availability of PHP 5.3.11 and PHP 5.4.1. These releases focuses on improving the stability of the current PHP branches with over 60 bug fixes, some of which are security related. Security Enhancements for both PHP 5.3.11 and PHP 5.4.1: Fixed bug #54374 (Insufficient validating of upload name leading to corrupted $_FILES indices). (CVE-2012-1172). Add open_basedir checks to readline_write_history and readline_read_history. Security Enhancement...

PHP 5.3.11 And PHP 5.4.1 Released!

PHP 5.3.11 And PHP 5.4.1 Released!
The PHP development team announces the immediate availability of PHP 5.3.11 and PHP 5.4.1. These releases focuses on improving the stability of the current PHP branches with over 60 bug fixes, some of which are security related.Security Enhancements for both PHP 5.3.11 and PHP 5.4.1:Fixed bug #54374 (Insufficient validating of upload name leading to corrupted $_FILES indices). (CVE-2012-1172).Add open_basedir checks to readline_write_history and readline_read_history.Security Enhancement affecting PHP...

Pim Elshoff's Blog: In favour of typing

Pim Elshoff's Blog: In favour of typing
Pim Elshoff has a new post to his blog that shares his preference on typing (keystrokes, not variables) in applications (hint: he likes it):We sometimes conceive of ideas that are arduous to express in code. Like persisting data, or some other uncommon task (sarcasm). It's not difficult, but it takes a lot of keystrokes to write. Being problem solvers, we find it difficult doing this kind of manual labour, especially when machines can do it for us. Still, I would like to take this opportunity to say that...

PHPClasses.org: Participate in the Lately in PHP podcast in Video with Google Hangouts

PHPClasses.org: Participate in the Lately in PHP podcast in Video with Google Hangouts
PHPClasses.org is trying something new with their "Lately in PHP" podcast for this latest episode - they want you to be a part of it via a Google hangout.The Google Hangouts On Air edition is not yet generally available to all Google+ users. However, thanks to the guides of the Google Top Contributor program, on which I have the pleasure and the privilege to participate, this feature was enabled on the PHP Classes site Google+ account. Therefore, starting the next episode, we are going to try recording...

Ibuildings techPortal: Want a DPC Ticket? Just ask!

Ibuildings techPortal: Want a DPC Ticket? Just ask!
On the Ibuildings techPortal there's a new post for people out there wanting to attend this year's Dutch PHP Conference but find the ticket price a problem - they're running a contest to give away one ticket for this year's event!Good news! We've managed to acquire a conference ticket for the Dutch PHP Conference in Amsterdam, on June 8th and 9th, to give away to our readers. We know that since you're reading techPortal, you are interested in technology in general and probably PHP in particular. The...

Danne Lundqvist's Blog: Getting to grips with an existing XML structure

Danne Lundqvist's Blog: Getting to grips with an existing XML structure
Danne Lundqvist has a new post where he shares a bit of code he's written to "come to grips" with an existing XML structure.Very often I find myself writing input filters for large XML files using PHP. Common enough task; and PHP offer a great variety of tools to do this effectively depending on the situation. Unfortunately, almost as common is the lack of documentation for the aforementioned XML files. [...] I have looked around for a simple tool but I didn't really find a tool that gave me the quick...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Html Content Grabber cMail Random Secure Password EasyMail TrialPay Dynamic Products Generator StormOnDemand API RGB degrade Browser Environment Detection Browser settings/environment detection Image Merge

Want a DPC12 Ticket? Just ask!

Want a DPC12 Ticket? Just ask!
Good news! We've managed to acquire a conference ticket for the Dutch PHP Conference in Amsterdam, on June 8th and 9th, to give away to our readers. We know that since you're reading techPortal, you are interested in technology in general and probably PHP in particular. The Dutch PHP Conference is one of the leading european conferences for PHP content and we hope you can join us there! This year, we're running a sister conference alongside DPC - the very first Dutch Mobile Conference is being held! Your...

Juan Treminio's Blog: Setting Up an Ubuntu VM, Step by Step

Juan Treminio's Blog: Setting Up an Ubuntu VM, Step by Step
Juan Treminio has a recent post to his blog showing the complete steps you'll need to get a virtual machine up and running (using VirtualBox and a Ubuntu Seerver install), complete with PHP, MySQL, Samba and Apache.Recently on r/php there was a thread asking users about their development environments. The usual answers came tumbling out - mostly about IDEs and methods for uploading their code (side note: FTP is a horrible way to do this!). Out of 144 responses, I noticed that very few mentioned virtual...

Voices of the ElePHPant Podcast: Interview with Eli White

Voices of the ElePHPant Podcast: Interview with Eli White
The Voices of the ElePHPant podcast has released their latest episode, another interview with a member of the PHP community. This time it's a chat with Eli White of MojoLive.Cal's three questions for Eli are: What advice do you have for managers that want to hire a remote developer? Of the three work experiences (US Gov't, Startup, Enterprise) which did you like the best and why? With all of the resume sites out there [...] why did MojoLive go into this space and what makes it different enough to stand...

PHPMaster.com: Working with Files in PHP

PHPMaster.com: Working with Files in PHP
On PHPMaster.com today there's a new tutorial that shows you some examples of working with files and the local file system in your PHP applications.You may well be familiar with databases such as MySQL and Access which are an ever-increasingly common means of storing data. But data is also stored in files, like Word documents, event logs, spreadsheets, image files, and so on. Databases generally require a special query language to retrieve information, whereas files are 'flat' and usually appear as a...

Refulz Blog: Yii Framework - Scenarios for Conditional Multiple Validation Rules

Refulz Blog: Yii Framework - Scenarios for Conditional Multiple Validation Rules
On the Refulz blog there's a post showing you how to set up conditional multiple validation rules in a Yii framework application.I am yet to write the last article of the Yii Session series. I just decided to write something about the scenarios in the Validation feature of Yii framework. Scenarios are a very useful tool for adding different validations rules for different cases on the same model. In a real life situation, you would require one validation rule for user registration but the same rule might...

Kevin Schroeder's Blog: A little more advanced ZF2 EventManager usage

Kevin Schroeder's Blog: A little more advanced ZF2 EventManager usage
Kevin Schroeder has a new post to his his blog with a bit more advanced example of using the Zend Framework 2 EventManager to make global event triggers.If you look at my previous post on the ZF2 EventManager class you might be tempted to think that you are limited only to listening to events for local instances of the event manager. But no, my friend, you would be wrong. The event manager actually provides access to a sort of global event manager. But it's more than that. This global event manager...

Getting to grips with an existing XML structure

Getting to grips with an existing XML structure
Very often I find myself writing input filters for large XML files using PHP. Common enough task; and PHP offer a great variety of tools to do this effectively depending on the situation. Unfortunately, almost as common is the lack of documentation for the aforementioned XML files. Manually trying to document the XML structure is not a fun job. And I have looked around for a simple tool but I didn't really find a Atool that gave me the quick and dirty overview I wanted. A year or so ago I finally wrote a...

Community News: Latest PECL Releases for 04.24.2012

Community News: Latest PECL Releases for 04.24.2012
Latest PECL Releases: cairo 0.3.2 sundown 0.3.3 sundown 0.3.2 spidermonkey 1.0.0 chdb 1.0.2 yaf 2.1.12 spidermonkey 0.2.1