PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 4141 to 4160 of 6889

PHP_CodeSniffer Article in php|architect

PHP_CodeSniffer Article in php|architect
TheAApril 2011 issue ofAphp|architect Magazine was published today and includes an article by me entitled aoKeeping Code Smelling Pretty With PHP_CodeSniffer.a Feel free to leave a comment on this blog post if you read it and enjoy it or have a suggestion on how to improve my presentation of the material. Thanks in advance!

SitePoint PHP Blog: Simple Object Iterators in PHP

SitePoint PHP Blog: Simple Object Iterators in PHP
On the SitePoint PHP blog today there's a new post from Craig Buckler looking (quickly) at a handy feature of the Standard PHP Library (SPL) that can help make working with objects and arrays simpler - object iterators.If you've been coding in PHP for a while, you may be familiar with the foreach loop. It provides an easy way to analyze every item in an array. As well as arrays, it's also possible loop through an object. If your object contains a collection of items, you can use a foreach loop to iterate...

Chris Jones' Blog: Malicious website use will never go away: how do you manage it?

Chris Jones' Blog: Malicious website use will never go away: how do you manage it?
Chris Jones has a new post to his OTN blog today pointing to two new articles by Eli White about managing malicious website use:The techniques Eli covers will always be applicable in one form or another. They should be a fundamental part of any website architect's bag of tricks.The first article focuses more on methods for preventing and dealing with the inevitable spamming that comes with running a larger site. Eli's experience at Digg has provided him with recommendations like creating hurdles for...

DZone.com: Using a stream wrapper to access CouchDb attachments with PHP

DZone.com: Using a stream wrapper to access CouchDb attachments with PHP
On DZone.com today there's a new post from Gonzalo Ayuso about using a stream wrapper to access CouchDb database directly from PHP (via a call to its local file).Thanks to a comment in my last post (many thanks Benjamin) I've discovered that it's possible to create a stream wrapper in PHP (I thought it was only available with a C extension). It's pretty straightforward to create the wrapper. Of course it's only an approach. We can create more functionality to our stram wrapper but at least this example...

Shay Ben Moshe's Blog: PHP's native array vs SplFixedArray performance

Shay Ben Moshe's Blog: PHP's native array vs SplFixedArray performance
Shay Ben Moshe has put together a quick post today where he benchmarks array handling performance differences between PHP's native array and the newer SplFixedArray data structure that's a part of the Standard PHP Library that comes with any recent version of the language. In PHP, arrays are one of the most fundamental data structures. We use them everywhere. They are very flexible, because they are implemented as associative arrays, and therefore let us use both string and integer keys. They are also...

Jeremy Brown's Blog: A Conversation About REST

Jeremy Brown's Blog: A Conversation About REST
As mentioned in this new post to his blog Jeremy Brown has put together a presentation he calls "A Conversation about REST", a discussion that centers less around the implementation of REST and more about the concepts needed to fully understand it.REST is a set of principles and not a specification, so as such you have freedom in how to develop your API. This freedom can lead to confusion though, as it's hard to find concrete examples of its implementation. This presentation explained what REST is and...

Zend Developer Zone: Announcing the April 2011 Zend Framework Bug-Hunt

Zend Developer Zone: Announcing the April 2011 Zend Framework Bug-Hunt
On the Zend Developer Zone there's a new post from Ralph Schindler announcing this month's bug hunt days for the Zend Framework project - April 28th (today!), 29th and 30th.Now that you're done paying the Tax Man (for the North Americans reading this blog post), it's time to pay it forward by helping an open source project close some issues! For those who haven't put the reoccurring event in their calendar, this announcement is for you. [...] For those of you unfamiliar with the event, each month, we...

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:ServerGrove.com: MongoDB with PHP and symfony WebDev Radio: Episode 76: Lithium Framework for PHP CMSReport.com: Expert PHP 5 Tools book NETTUTS.com: Quick Tip: Loop Through Folders with PHP's Glob() Vance Lucas' Blog: NoSQL First Impressions: Object Databases Missed the Boat Paul Reinheimer's Blog: A GUI for XHProf php|architect: OddWeek #7: Talking with a recruiter Abhinav Singh's Blog: Setting Nginx, PHP Fastcgi and XCache on a new...

There is an app^Wppa for that

There is an app^Wppa for that
Want to try out PHP5.next (PHP5.4?) on Ubuntu? After the death of PHP6.0 a while ago, development of PHP.next (PHP5.4 probably?) has been going on. There are a lot of cool features there try out - like traits, scalar type hint, and sh**loads of smaller features. There is still no public "development preview" or alpha release, but that doesn't mean we can't play around with it, report bugs, ensuring our apps still properly work with it etc etc etc. It is however a bit annoying needing to "go old-school"...

Simple Object Iterators in PHP

Simple Object Iterators in PHP
If you've been coding in PHP for a while, you may be familiar with the foreach loop. It provides an easy way to analyze every item in an array, e.g. $myArray = array(); $myArray[] = "First item"; $myArray[] = "Second item"; $myArray[] = "Third item"; foreach ($myArray as $i) { echo "$i"; } As well as arrays, it's also possible loop through an object. If your object contains a collection of items, you can use a foreach loop to iterate over each of them. It doesn't matter what's in that collection or how...

Still alive!

Still alive!
Wowa more than one year since my last post. Time flies, especially if your company got aquired and you experience suddenly very exciting adventures. What a year! Anyway, back to business - I'll increase slowly my public appearance and therefore I am happy to announce these two upcoming events: 1. I am attending next week a MASS Technology Leadership Council Breakfast Seminar in Cambridge, MA where I'll speak about aothe Secrets to Achieving Unprecedented Rates of Growth and Innovationa at KAYAK 2. I got...

Join the PHP Content Repository Workshop on May 8th

Join the PHP Content Repository Workshop on May 8th
The IKS Project and Liip are organizing a PHP Content Repository Workshop in Zurich, Switzerland on May 8-9 2011. If you're working on PHP-based content management technologies, this event should be a very useful one to join or at least follow. What is a content repository? Content Repository is a programming interface for connecting with various persistent data stores. On the Java side, the JCR specification has gained quite a bit of traction, allowing for easy decoupling of a Content Management System...

PHP Components: Shipping Documentation With Your Component

PHP Components: Shipping Documentation With Your Component
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components. I'm now going under the bonnet of our components, and looking at the different file roles that the PEAR installer expects to find when we distribute our component as a PEAR-compatible...

Malicious website use will never go away: how do you manage it?

Malicious website use will never go away: how do you manage it?
OTN has published two articles by Eli White that stem from his long experience with protecting high volume websites from unwanted and malicious use. Eli has worked on many large scale PHP projects including Digg, TripAdvisor, and for the Hubble...

Vito Chin's Blog: Book: PHP Development in the Cloud

Vito Chin's Blog: Book: PHP Development in the Cloud
Vito Chin has posted a quick mention of the book that he and Ivo Jansch wrote together about cloud computing and how PHP fits into the picture - PHP Development in the Cloud.I had a conversation with Ivo at the Claddagh Ring of Hendon and we'd decided to write this book together. We wanted to clarify where cloud computing will intersect with the internet & the WWW; and parts of it that makes having a different term to describe the cloud necessary. We do so from a PHP perspective because it is the...

PHPBuilder.com: Introducing the Yii PHP Framework

PHPBuilder.com: Introducing the Yii PHP Framework
In another in his framework series, Jason Gilmore has a new post on PHPBuilder.com about another popular framework - the Yii framework. He introduces you to the framework and shows the creation of a sample, basic site.Frameworks have been the topic du jour here at PHPBuilder.com, with numerous recent articles covering DooPHP and Fat-free. In this latest stop on the framework tour, we'll check out Yii, a relatively new framework (less than three years old) that boasts an impressive array of features and...

Brian Swan's Blog: Sorting Azure Table Entities by Timestamp with PHP

Brian Swan's Blog: Sorting Azure Table Entities by Timestamp with PHP
Brian Swan has a quick new post to his blog for the PHP + Azure users out there on how to easily sort table entities by a timestamp through the Azure SDK for PHP. The timestamp is a property on the parent storage table class, so you don't need to create it in your entity, it's already there.The problem boils down to sorting an array of objects by a timestamp property, so the information here is nothing that hasn't been done before. However, after spending some time looking for a way to use a filter in...

Announcing the April 2011 Zend Framework Bug-Hunt

Announcing the April 2011 Zend Framework Bug-Hunt
Now that you're done paying the Tax Man (for the North Americans reading this blog post), it's time to pay it forward by helping an open source project close some issues! For those who haven't put the reoccurring event in their calendar, this announcement is for you: Zend Framework Monthly Bug-hunt is here again! Tomorrow, Friday and Saturday of April (the 28th, 29th and 30th 2011), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month, we organize the community to...

RubySource: Mixing Like a Baker

RubySource: Mixing Like a Baker
Over on RubySource, our resident PHP developer Mal Curtis discusses a feature of Ruby that eases the management of repeated code: mixins.Read the full article-Confessions of a Converted PHP Developer: Mixing Like a Baker-over on RubySource.

PHP Components: ComponentManager-1.1.3 Released

PHP Components: ComponentManager-1.1.3 Released
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components. I've just put out ComponentManager version 1.1.3, with the following (hopefully useful) changes: Bug Fixes For The php-library Skeleton Any text docs in your component's top-level...

Latest PHP Tweets