PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 101 to 120 of 184

PHPMaster.com: Reusing Implementation - a Walk-through of Inheritance, Composition, and Delegation

PHPMaster.com: Reusing Implementation - a Walk-through of Inheritance, Composition, and Delegation
On PHPMaster.com today there's a new tutorial posted that wants to provide a guide to walk you through a trio of ideas to help with code/idea reuse in your applications - inheritance, composition and delegation.The popular belief is that reusing implementation, thus producing DRYer code, boils down to exploiting the benefits that Inheritance provides, right? Well, I wish it was that easy! [...] If you don't know what path to travel when it comes to reusing implementation, in this article I'll be doing a...

PHPEasy.co.uk: Design Patterns - The Singleton Pattern

PHPEasy.co.uk: Design Patterns - The Singleton Pattern
PHPEasy.co.uk has a new tutorial posted introducing one of the most common (and often misused) design patterns out there - the Singleton pattern.In this first tutorial in the design pattern series we are going to investigate and implement the singleton design pattern. [...] A design pattern is a common solution to a given problem, problems in programming tend to recur and we often find ourselves trying to solve the same issues over and over. The common techniques that provide solutions to these problems...

The Secure Programmer's Pledge

The Secure Programmer's Pledge
Every day I come across code that is insecure. Sometimes the code is so hilariously insecure that any 10 year old could break it. I've also gotten into discussions with people who should know better about their practices. It's very, how to put this, disheartening. It's sad that the average developer knows (and cares) so little about proper security practices. So, I've put together a simple pledge (or manifesto, if you'd like).Read more A

Chris Hartjes' Blog: Monkey-patching Is for Closers

Chris Hartjes' Blog: Monkey-patching Is for Closers
In this new post to his blog Chris Hartjes looks at why "monkey patching is for closers" - how it should be avoided in favor of making the code itself more testable rather than "hack" with the patching.The use of monkey-patching is extremely prevalent in the Ruby community and also to a certain extent in Python usage. I'm not going to go into length about their use of it except to say that it seems quite common and I think most developers are using it as a shortcut to counter what might be poor code...

Bob Madjak's Blog: Making images transparent using Imagick - enter the pixel iterator

Bob Madjak's Blog: Making images transparent using Imagick - enter the pixel iterator
In this recent post to his blog Bob Madjak looks at how to use the Imagick functionality to create images with transparent backgrounds.So we have this image, and we want to set it to be 75% transparent using Imagick. This sounds simple enough, doesn't it? Perhaps we are trying to create a watermark, or we just want to fade the image for some reason.He shows how to use the ImagickPixelIterator to take care of some of the issues that can be caused by just a call to "setImageOpacity". A code sample is...

Get your time backa by learning to automate it

Get your time backa by learning to automate it
After nearly a year ago saying I was going to be a more regular blogger, here I am nearly 4 months from my last post (and closer to 5 months since one that arguably had some sort of insight to it). So you, one of the 5 regular readers of my blog are probably wondering what's my excuse going to be this time. Simply put, I let my own inefficiencies get the best of me. I plan to do a series of blog posts around this topic, but the bottom line is that being a remote worker means you have to have an even...

Community News: Latest PEAR Releases for 07.16.2012

Community News: Latest PEAR Releases for 07.16.2012
Latest PEAR Releases: PHP_CodeSniffer 1.3.5

Community News: Atlanta PHP & Atlanta MongoDB Host Derick Rethans

Community News: Atlanta PHP & Atlanta MongoDB Host Derick Rethans
The Atlanta PHP User Group has a special announcement posted to their site - a joint event happening with the Atlanta area MongoDB user group with Derick Rethans (of 10gen) as the speaker.MongoDB is a scalable, high-performance, open source, document-oriented NoSQL database. [...] This talk introduces MongoDB for developers who aren't familiar with it with a detailed introduction of how to work with MongoDB from PHP. This talk will cover the basics from installing the PHP driver and connecting to MongoDB...

So, You Like To Read?

So, You Like To Read?
One of the things that I see repeated over and over again is the simple question "What books should I read to become a better developer?". Or "How did you learn about that?". Or even "What does a coding standard matter?"... OK, so that last one was a bit of aAsentinelAquestion, but the point is clear. Where should you look if you want to read to improve your development abilities? Well, I figured I'd take a few pages out of my library and share which books worked for me, in order of significance. If you...

Reddit.com: History Lesson: What PHP coding was like in 1996

Reddit.com: History Lesson: What PHP coding was like in 1996
On Reddit.com there's a new post that throws you back to a different time in PHP's life - back to 1996 when PHP was still in version 3:I was lurking one day on Usenet Perl forums when I saw an announcement about the release of PHP 2.0/FI, the first truly public version of PHP. I was growing weary of trying to get PERL working via CGI and fell in love immediately with how simple and fault-tolerant mod_php with Apache was compared to CGI hell. In 1996, they didn't have sites like reddit when I was a noob....

Derick Rethans' Blog: What is PHP doing?

Derick Rethans' Blog: What is PHP doing?
Derick Rethans has a new post to his blog showing how you can, using a few simple unix tools, figure out what PHP is doing when your scripts are executing.Sometimes when you have a long running PHP script, you might wonder what the hell it is doing at the moment. There are a few tools that can help you to find out, without having to stop the script. Some of these work only on Linux.He shows you how to use the following commands to track down exactly what your process is working on: strace, ltrace and gdb...

Site News: Popular Posts for the Week of 07.13.2012

Site News: Popular Posts for the Week of 07.13.2012
Popular posts from PHPDeveloper.org for the past week:Anthony Ferrara's Blog: The True Problem With PHP Jeff Carouth's Blog: Micro Framework and JavaScript Applications Matt Frost's Blog: Prevent Overcomplication Phil Sturgeon's Blog: PHP: Ecosystem Update The Bakery: 3.0: a peek into CakePHP's future Anthony Ferrara's Blog: Building A Multi-Version Build System Raymond Kolbe's Blog: DOMPDF in ZF2 Community News: PHP, The Right Way Site Launches Lee Davis' Blog: The enum conundrum DZone.com: All...

What is PHP doing?

What is PHP doing?
What is PHP doing? London, UK Friday, July 13th 2012, 09:42 BST Sometimes when you have a long running PHP script, you might wonder what the hell it is doing at the moment. There are a few tools that can help you to find out, without having to stop the script. Some of these work only on Linux. strace The first tool that you can use is strace. strace is a tool that traces system calls. System calls are made by PHP for reading/writing from/to the network and/or files; this also includes reading and...

Nikita Popov's Blog: What PHP 5.5 might look like

Nikita Popov's Blog: What PHP 5.5 might look like
Nikita Popov has looked ahead to the future of PHP in a new post to his blog, thinking about what PHP 5.5 might be like and what features could be included.PHP 5.4 was released just four months ago, so it probably is a bit too early to look at the next PHP version. Still I'd like to give all the people who aren't following the internals mailing list a small sneak peak at what PHP 5.5 might look like.He's looking at the proposed functionality, not finalized features, so some of it might not make it in. He...

PHPMaster.com: Better Understanding PHP's Garbage Collection

PHPMaster.com: Better Understanding PHP's Garbage Collection
If you've been working with PHP for any length of time, you probably have wondered what happens to everything you've created when your script's execution ends. Well, in this new post from PHPMaster.com PHP's garbage handling functionality.It's interesting how just a few years can make a difference in the names that are given to things. If this were to come up today, it would probably be called PHP Recycling Options, because rather than picking things up and throwing them into a landfill where they'll...

MaltBlue.com: Zend Framework - How To Implement RSS Feeds the Easy Way

MaltBlue.com: Zend Framework - How To Implement RSS Feeds the Easy Way
On the MaltBlue blog Matt Setter has a new tutorial posted about creating RSS feeds quickly and easily with the help of the Zend Framework and context switching.Ever wanted to know how to take an existing Zend Framework application where you have posts, records, news or anything else stored in a data source and updated regularly, and make it available as a feed for your users that they can subscribe to? Well today, that's what I want to show you. Recently, during the development of the burgeoning PHP...

Community News: PHPEasy.co.uk Launched

Community News: PHPEasy.co.uk Launched
Carl Gresswell has put together a new site that aims to provided tutorials for budding PHP developers out there looking to advance their knowledge of the language and some of the best practices surrounding it - PHPEasy.co.uk. I have created PHPeasy with the aim of providing tutorials, tips, code snippets and news on the subject of PHP. I rarely get the opportunity to discuss PHP and share thoughts with other like minded developers, so I'm hoping that this blog will allow me to do that. I aim to provide...

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:Mushfiqsimple Blog: Getting Started with MongoDb with PHP Tutorialzine.com: Creating a PHP and CSS3 Powered About Page DevShed: PHP Object Oriented Programming using LSP PHPBuilder.com: 6 PHP Performance Tips for Producing Highly Optimized Code CodeForest.net: Android JSON-RPC client and PHP Zend Framework server Liip Blog: First Release of Proxy-Object Community News: An Effort to Deprecate the MySQL Extension Brian Swan's Blog: PHP Driver...

Video: Decoupling Content Management

Video: Decoupling Content Management
Our concept of Decoupled Content Management, together with the VIE and Create.js is really taking off. I've spent in various conferences this summer speaking about them. Here is a video from the talk I gave in the IKS Salzburg Workshop last month. It is quite a lot shorter than the more comprehensive talks like the one in Symfony Live, but should introduce the ideas pretty well: Those interested in the background of all this may also enjoy this video where we're talking about the concepts behind...

Fortrabbit.com: Cloudscapes - Comparing PHP Cloud Hosting Platforms

Fortrabbit.com: Cloudscapes - Comparing PHP Cloud Hosting Platforms
On the Fortrabbit.com blog there's a new post that does a quick overview and comparison of 11 of the more popular cloud-based hosting platforms out there that are PHP friendly.We are currently building yet another PHP Cloud Platform ourselves. Of course we looked around to see what the others are up to. This is my (Franks) personal point of view of the current market situation showcasing my favorite services. I try not to judge, neither i will compare features nor prices.Services on his list include:...