PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

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

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...

Stuart Herbert's Blog: Last Call For Requirements For A PEAR Channel Aggregator

Stuart Herbert's Blog: Last Call For Requirements For A PEAR Channel Aggregator
If you're still interested in contributing your ideas and feature requests for a PEAR channel aggregator, Stuart Herbert wants to know (last call before the development starts).There's already been a sizeable response so far, but if you haven't had your say yet, please head on over and leave a comment soon. I'll write up a summary of the suggested requirements on Monday.The idea behind the aggregator is to provide a single place for developers to look (besides the PEAR site, of course) for PEAR packages...

Stefan Koopmanschap's Blog: Removing stylesheets in symfony 1

Stefan Koopmanschap's Blog: Removing stylesheets in symfony 1
Stefan Koopmanschap has a quick post to his blog with a handy, not immediately obvious tip for the Symfony users out there - how to remove site-wide stylesheets in a Symfony application so it's not loaded automatically.Today I encountered a situation I've not encountered before: I have a project-wide stylesheet that should be used for everything, except one specific module that has different (brandable) stylesheets. I created a view.yml for this module with a different stylesheet, but of course the...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Smileys To IMG FTP Manager tools Simple Cache SQL builder URL shortener by hycus Simple full site cache Mini Fast Template PID process check Chinese Character Conversion ClickATell SMS Gateway API JPanel Tab

Removing stylesheets in symfony 1

Removing stylesheets in symfony 1
Today I encountered a situation I've not encountered before: I have a project-wide stylesheet that should be used for everything, except one specific module that has different (brandable) stylesheets. I created a view.yml for this module with a different stylesheet, but of course the configuration files are merged so it doesn't actually overwrite the main stylesheet file. And this wasn't really what I needed here.

Last Call For Requirements For A PEAR Channel Aggregator

Last Call For Requirements For A PEAR Channel Aggregator
A couple of weeks ago, I posted a call for requirements for a PEAR channel aggregator. There's already been a sizeable response so far, but if you haven't had your say yet, please head on over and leave a comment soon. I'll write up a summary of the suggested requirements on Monday.

Book: PHP Development in the Cloud

Book: PHP Development in the Cloud
I like cloud computing for two reasons:It's shared!Personal space is vital and enjoyable for many of life's activities, but easily accessible public spaces/utility/services can be more efficient for many other activities (for example, we don't need to own a football field to play it, renting a pitch for 2 hours will be better). I think public clouds such as Amazon, Rackspace and others like it are analogous to accessible public utilities.It's alive!"The illusion that we are separate from one another is...

Brian Moon's Blog: PHP Frameworks

Brian Moon's Blog: PHP Frameworks
Brian Moon was a presenter at the PHP Community Conference that just wrapped up last week where he talked about Phorum and some general thoughts on frameworks. In his latest post he recaps some of these thoughts and comments.n my session, I talked about the history of Phorum. One of the things I covered was the early days of PHP. Back in the 90s, before PHP, most dynamic web work was done in C or Perl. At that time, in those worlds, you had to do all the HTTP work yourself. [...] PHP changed all that....

Voices of the ElePHPant: Interview with Kevin Schroeder

Voices of the ElePHPant: Interview with Kevin Schroeder
The Voices of the ElePHPant podcast has released their latest episode - an interview with Kevin Schroeder of Zend Technologies.Cal's "three questions" center less around his work at Zend and more about his work with the language: How did you come into programming in PHP? Which part of PHP programming surprised you the most (as a programmer who didn't start with PHP)? What one aspect of PHP programming do you enjoy the most? As always you can listen to this latest episode either through the in-page...

Anna Filina's Blog: Integrating Markdown with Symfony

Anna Filina's Blog: Integrating Markdown with Symfony
Anna Filina has a new post showing how you can integrate a documentation format that's become a bit more popular recently (due partially to its increased use on github), Markdown, into a Symfony application.I needed to create a number of static help pages in three languages in a Symfony 1.4 application. Using the XLIFF translation files seemed absurd, since I knew that I will include a lot of HTML. [...] And so, I decided to create partials using the following structure: _docs/{lang}/{title}.php. This...