PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 41 to 60 of 240

Run FindBugs from your Eclipse RCP headless build

Run FindBugs from your Eclipse RCP headless build
Running FindBugs from Eclipse RCP headless build is pretty much simple:1. Add the following target to your customTargets.xml (replace "com.yourcompany" with your package/plug-in prefix): classname="edu.umd.cs.findbugs.anttask.FindBugsTask" home="${env.FINDBUGS_HOME}/lib" output="xml" failOnError="true" jvmargs="-server -Xss1m -Xms512m -Xmx1024m" includeFilter="${basedir}/findbugs-filter.xml" outputFile="${buildDirectory}/findbugs.xml" 2. Create input filter...

A First Look at Fuel

A First Look at Fuel
There was an announcement a while back from Phil Strugeon and a few others (shortly after some issues came to light with a certain other framework) about a new framework they were developing that came to be called Fuel. According to their site, the goal is to be: a simple, flexible, community driven PHP5 framework. FUEL aims to take the best idea's from a bunch of frameworks, throw away the aonot so gooda stuff, and create one awesome framework. It is provided under the terms of an MIT License, which...

Zend Developer Zone: Announcing The Zend Framework Bug Hunt Champions

Zend Developer Zone: Announcing The Zend Framework Bug Hunt Champions
The results of this month's Bug Hunt Day for the Zend Framework are in and the Zend Developer Zone has posted about the champions and stats for the event.In just 3 short days, contributors managed to resolve exactly 111 issues. Fitting though, if you think about it, since this is the 1.11 branch for Zend Framework: 111 issues, 1.11 branch release... I'd like to say we planned it that way, but alas, it was merely coincidental the way these numbers worked out.The champion for this month's event is Ryan...

A ray of light for PHP

A ray of light for PHP
A little more than a half year ago I announced my retirement from PHP core. Since then I have directed my focus elsewhere like Symfony2 and not the CMF project. I do not regret the decision. The main reason to step down was that it was just a too taxing up hill battle to move PHP towards a more open and transparent development process against the inner circle who preferred things to stay as they were back when PHP was by far not as popular or relied upon. This is what I had to say back then: Through out...

PHPBuilder.com: Implementing the Singleton Pattern in PHP 5

PHPBuilder.com: Implementing the Singleton Pattern in PHP 5
If you haven't taken much of a look at design patterns and how they can help your development life, the Singleton pattern is a good place to start. On PHPBuilder.com there's a new tutorial introducing this handy pattern and how it might fit your needs.One of these patterns is the Singleton design pattern, which is based on the mathematical concept of a singleton (a set with a single element). [...] Sometimes the Singleton pattern can help complete important programming tasks, but only you can decide...

DZone.com: Zend_Glossary

DZone.com: Zend_Glossary
If you're new to using the Zend Framework, you there's one big hurdle you might have to overcome. There's a lot of terms used in the system that might not be all that familiar to you. Thankfully Giorgio Sirnoi has written up a guide (he calls it a "Zend_Glossary") to help smooth over the rough parts.When you're approaching a framework with a learning curve as steep as ZF, it's easy to be overwhelmed by new terms and declare them buzzwords. Instead, they have often a very precise meaning. I've creates...

CogniterPodcast.com: Ep. #4 - Changes to CodeIgniter 2.0 and the Community Branch

CogniterPodcast.com: Ep. #4 - Changes to CodeIgniter 2.0 and the Community Branch
A new episode of the CodeIgniter podcast has been released today talking about some of the recent happenings in the CodeIgniter community.Phil, Derek and Kenny have a chat about the recent changes in CodeIgniter 2.0 (dropping PHP4 and others) and talk about the new CodeIgniter Community Branch.Resources mentioned include Derick Allard's blog, the official information about the community branch, Ion Auth and a course schedule and booking system example. You can either download the mp3 of the episode or...

Sebastian Bergmann's Blog: Scalar Type Hints in PHP 5.3.99

Sebastian Bergmann's Blog: Scalar Type Hints in PHP 5.3.99
In the theme of other recent posts mentioning the scalar type hinting that has been included in the main line of code that is headed towards the next PHP release, Sebastian Bergmann has a new post about their inclusion in PHP 5.3.99 (yes, that's PHP 5.4) and the new syntax it introduces.In a nutshell, this means that PHP 5.3.99 introduces new syntax -- scalar type hints -- but no new semantics. The latter can either be implemented as an extension written in C/C++, in userland PHP code, or in a tool that...

Henri Bergius' Blog: PHP: Finally getting an ecosystem?

Henri Bergius' Blog: PHP: Finally getting an ecosystem?
In this new post to his blog Henri Bergius takes a step back and wonders if PHP is finally getting an ecosystem of its own (and not leaning of those of PHP-based projects.One of my main concerns with PHP has been the lack of ecosystem. Almost all libraries and tools are written with a specific framework in mind, creating separate ecosystems around Drupal, Zend Framework, Midgard and others instead of an ecosystem benefiting all users of the language. There have been efforts at this, like PEAR before, but...

Wojciech Sznapka's Blog: Power of PHP streams - decompress gz archives on the fly from remote server

Wojciech Sznapka's Blog: Power of PHP streams - decompress gz archives on the fly from remote server
Wojciech Sznapka has a new post to his blog today looking at the "power of PHP streams" and how they can be used to decompress gzipped data from remote servers.Probably most of us heard about streams in PHP. They are background of all files and network operations in PHP, even if we don't see it. Everytime when you use file_get_contents or fopen you are actually using streams. But there are many stream wrappers I haven't used, because they aren't well known.One of them is compress.zlib (and two other...

Move from MySQL to DB2 via the Cloud

Move from MySQL to DB2 via the Cloud
IBM developerWorks has just published the first article in a series that Mark Nusekabel, Yan Li Mu and I wrote about our experience migrating a large PHP and MySQL application to DB2. In the four part series we look at preparation, switching databases, porting code, and finally deploying the application. This first installment covers the [...]

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
AMaths Disk Usage Simple Language Changer Oracle::DB Database Management Class EventDriven English to Arabic Number CAPTCHA Creator ip2country PHP WSAMemcached

Microsoft Certified Applications: SilverStripe

Microsoft Certified Applications: SilverStripe
Microsoft recently certified the first open source web application to run on Windows Server 2008 R2. That application was SilverStripe, a Content Management System (CMS) originally developed by a team in New Zealand. There are many excellent CMS and other open source web projects but Microsoft saw something they liked in SilverStripe. Ibuildings are certified SilverStripe partners and have been working with it for quite some time, so I thought this was a great time to shed some light on this excellent...

Magento: Loading the product from a template

Magento: Loading the product from a template
When I wrangle with Magento Commerce and customize anything, every other bit is of course tied to a product's ID, or sometimes entity ID. The challenging part is that whenever you're in a template in Magento, the scope is very different from the previous one. This is sometimes frustrating, but when you think of it - it makes sense. That is in Magento! ;-)Magento works in blocks and each block is basically a class file, of course $this is never the same. So for example the scope of a block that renders a...

iCalendar / vCard parser for PHP

iCalendar / vCard parser for PHP
I've just finished an iCalendar vCard parser for PHP. It's done almost completely with a 'natural' simplexml-like interface, so it should (hopefully) be just as easy to parse, and also modify iCalendar / vCard objects (ics/vcf files). To install using pear, run the following:pear channel-discover pear.sabredav.orgpear install sabredav/Sabre_VObject-alphaOr download from pear.sabredav.org.For testing, I used this iCalendar file: icalendartest.ics.To load in an object, you use the Reader class:// Link to...

Devis Lucato's Blog: Anonymous objects in PHP - Composition, Mocks, Refactoring

Devis Lucato's Blog: Anonymous objects in PHP - Composition, Mocks, Refactoring
In a new post to his blog Devis Lucato points out something he noticed when working with objects and anonymous functions/closures - they're not all as they seem.Both solutions allow to instantiate an anonymous object with properties. They are used as value objects and have no other purpose than storing values, so no logic can be included and they don't come with methods. They can be used as function parameters instead of arrays, for instance. PHP 5.3.0 introduced anonymous functions and closures, so it...

Mashable.com: 8 Experts Break Down the Pros and Cons of Coding With PHP

Mashable.com: 8 Experts Break Down the Pros and Cons of Coding With PHP
Mashable has posted the third part of their "PHP experts" series with a look at what the eight people on their panel think are some of the pros and cons about developing with PHP.In recent posts, our "PHP masters" gave helpful hints for beginners as well as some pointers for intermediate and advanced coders. For the last post in this series, we've turned to the same experts with some more general questions: What makes PHP a good language? What are some of PHP's drawbacks? And what are the best apps or...

Mike Willbanks' Blog: Android C2DM with PHP and Zend Framework

Mike Willbanks' Blog: Android C2DM with PHP and Zend Framework
In this new post to his blog Mike Willbanks shows how to use PHP - more specifically the Zend Framework - to send push notifications to an Andriod device via C2DM.So you've got a new fancy Android application and you want to be able to send push notifications to the phone. Either for synchronization purposes or for notifications. Since C2DM is fairly new and is currently in the labs it is rather difficult to find code that already handles sending out the notifications correctly. This article will go...

Lorna Mitchell's Blog: Google Analytics Accounts API

Lorna Mitchell's Blog: Google Analytics Accounts API
In this new post to her blog Lorna Mitchell looks at some of the work she's done to extract information out of the Google Analytics accounts API via an OAuth interface and parsed via SimpleXML.I'm using pecl_oauth to authenticate users against their google accounts (see my post about using OAuth from PHP), but even after I have a valid google user, working out which analytics accounts they have access to and how to refer to them is a puzzle in itself, so I thought I'd share what I learned.In her example...

Announcing The Zend Framework Bug Hunt Champions

Announcing The Zend Framework Bug Hunt Champions
In just 3 short days, contributors managed to resolve exactly 111 issues . Fitting though, if you think about it, since this is the 1.11 branch for Zend Framework: 111 issues, 1.11 branch release... I'd like to say we planned it that way, but alas, it was merely coincidental the way these numbers worked out.