PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 241 to 260 of 270

Phil Sturgeon's Blog: EllisLab react with CodeIgniter Reactor

Phil Sturgeon's Blog: EllisLab react with CodeIgniter Reactor
Phil Sturgeon, one of those selected to a spot in the Engineer group of the CodeIgniter Reactor community branch, has posted a few thoughts of his own about the moves EllisLab has made and the reaction from the community he's seen.Since what some have referred to as "CodeIgniter-gate" EllisLab's have done a great job of listening to the points raised by me and other members of the community and in part I believe we have effected change. [...] Good news right? Hell yes. This is exactly what the...

DZone.com: Zend_Validate for the win

DZone.com: Zend_Validate for the win
In this new post to DZone.com today Giorgio Sironi looks at what he considers one of the more valuable yet underestimated components of the Zend Framework - Zend_Validate.Zend_Validate is a component of Zend Framework which provides validation classes which out-of-the-box enable you to check from string lengths to stranger properties like conformance to regular expressions or to a standard for barcodes. [...] Some parts of Zend_Validate are quite complex, and tie-in with the other components: there are...

PHP Content Repository: Full implementation in sight

PHP Content Repository: Full implementation in sight
Recently, I put a finishing cleanup on the PHPCR API, the port of the Java Content Repositry API (JCR) to PHP. PHPCR is implemented by Jackalope, which got a whole team at Liip working at it to fix the failing tests and fill in missing bits. You might have heard that we started to port the Java Content Repository (JCR) standard to PHP. If not, read the Jackalope post from last year. The JCR is a Java standard for storing content. Probably the best way to think of it is as a file system with flexible meta...

CodeIgniter.com: CodeIgniter in 2011: Reactor, Core, & UserVoice

CodeIgniter.com: CodeIgniter in 2011: Reactor, Core, & UserVoice
The CodeIgniter project (from EllisLab) has posted the latest community efforts they've been making to try to advance not only the framework but the CodeIgniter community as well. They've introduced three new things - CodeIgniter Reactor, Core and UserVoice.EllisLab, Inc. is formally announcing CodeIgniter Reactor, a community driven branch of CodeIgniter that will enable faster adoption of the best community submitted code to the CodeIgniter open source PHP framework. CodeIgniter Reactor will be...

Mashable Interview

Mashable Interview
I was fortunate enough to be interviewed on Mashable by Jolie O'Dell recently, cited as a aoPHP experta Here's a full transcript of the original email interview, some responses make more sense in context: Am running a bit behind but here are my answers for your interview, please let me know your feedback and if this gets published: -What advice would you give to a developer just starting to learn PHP? - keep on top of best practices including a healthy approach to security - read the code of seasoned...

Label Media Blog: Test Driven Development with PHPUnit

Label Media Blog: Test Driven Development with PHPUnit
New on the Label Media blog today Sam Holman has posted his introductory look at doing Test Driven Development (TDD) with the help of the popular PHP unit testing tool PHPUnit.I couldn't find any recent surveys looking into the percentage of software development teams that make use of TDD, but i'd hazard a guess that it's probably not as high as it perhaps should be. I think there are a number of reasons for this, but it's primarily all about the people. The technologies are here, you've just got to...

Site News: Popular Posts for the Week of 12.03.2010

Site News: Popular Posts for the Week of 12.03.2010
Popular posts from PHPDeveloper.org for the past week:Label Media Blog: Design Patterns in PHP - Factory method Satya Prakash's Blog: PHP is not Java Label Media Blog: Design Patterns in PHP - Strategy Pattern Chris Tankersley's Blog: Playing with Lithium OpenSky Blog: Inheritance in PHP, or why you want to use an Interface or an Abstract class... Sameer Borate's Blog: How not to create a Random string Till Klampaeckel's Blog: Tracking PHP errors Christoph Dorn's Blog: FirePHP 1.0 in 5 Steps DZone.com:...

Profiling with XHGui

Profiling with XHGui
Everyone wants a fast web site. Making one is a bit more difficult. Profiling code during development is easy, thanks to the excellent Xdebug extension (which also provides handy debugging tools), but this still leaves us blind in production, where we care the most. It's also frequently more than a little different than the development machine. Facebook faced a similar problem in their pre-HipHop days, and developed XHProf, a profiler lightweight enough to run on your production servers. It still adds...

Joshua Thijssen's Blog: Creating a traceroute program in PHP

Joshua Thijssen's Blog: Creating a traceroute program in PHP
Joshua Thijssen has a new post to his blog looking at taking a common unix tool - traceroute - and seeing if he could translate it into PHP where it could be called directly without the need for something like exec.Today i was reading upon this wonderful article about writing a trace-route program in Python in 40 lines. Even though trace-route is one of the many tools i use on day to day basis, i never really got into writing a version myself (something I like to do just to gain knowledge how things...

Bence Eros' Blog: Using Inheritance

Bence Eros' Blog: Using Inheritance
In this new post to his blog, Bence looks at how inheritance is commonly used in PHP applications and how, if not controlled carefully can be something that creates bad habits among PHP developers.In fact I think that using inheritance all the time is a very big mistake and makes your code hard to maintain and more hard to integrate (the latter is a mistake for application codes and a fatal mistake for libraries). The main problem with inheritance is that if you use it for coupling two classes, then a...

Tobias Schlitt's Blog: PHP library release survey

Tobias Schlitt's Blog: PHP library release survey
Tobias Schlitt has a new post to his blog about a survey the Apache Zeta Components project is running about how developers would like to receive the libraries they use in their code.The Apache Zeta Components project is currently discussing how to adjust the old eZ Components release process to the ASF guidelines. During this discussions, quite some ideas came up on how the process could be optimized. This brought my interest to how users of PHP libraries would actually like to obtain library code for...

PHPBuilder.com: Boost PHP Site Performance with Zend Framework Data Caching

PHPBuilder.com: Boost PHP Site Performance with Zend Framework Data Caching
New on PHPBuilder.com there's a tutorial from Jason Gilmore looking at caching data with Zend_Cache, a component of the popular Zend Framework. He focuses on how it can boost the speed and overall performance of your application (even if you don't use the Zend Framework!)Zend_Cache can be configured to cache several types of output, including the results of function calls, the results of object and static method calls, entire pages, and configuration data. You determine what data is cached using...

Developer.com: 10 Powerful PEAR Packages

Developer.com: 10 Powerful PEAR Packages
On Developer.com there's a new article with what they think are the top ten PEAR packages that every developer should know and use in their applications.PHP developers also have another community-driven treasure trove at their disposal, one which is host to almost 600 high-quality libraries yet never seems to garner the attention it deserves. I'm referring to the PHP Extension and Application Repository, better known as PEAR, and in this article I'll try to shine the spotlight just a bit brighter on this...

NETTUTS.com: Creating a Twitter OAuth Application

NETTUTS.com: Creating a Twitter OAuth Application
In a recent post to NETTUTS.com, there's a new tutorial that will walk you through the creation of a basic Twitter client that uses their OAuth system for authentication. All of the code is provided so you can follow along.OAuth can be a tricky concept to wrap your head around at first, but with the Twitter API now requiring its use, it is something you need to understand before creating a Twitter application. This tutorial will introduce you to OAuth, and walk you through the process of creating a basic...

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:Brandon Savage's Blog: Why Great Development Tools Don't Seem To Be Written In PHP PHP Women: PHPWomen Calendar 2010: On sale! ThinkPHP Blog: Developing desktop applications by using web technologies Piotr Walczyszyn's Blog: Configuring Eclipse PDT & Flash Builder 4 Plug-in for PHP/Flex development Juozas Kaziukenas' Blog: Service Layer in Web applications IBuildings techPortal: Profiling with XHProf Pablo Viquez's Blog: Zend_Log, FirePHP...

Stage 2: http:BL with Apache2 mod_perl

Stage 2: http:BL with Apache2 mod_perl
After my earlier post Referrer and Comment spammers are a PITA I came up with two mod_perl plugins to Apache and an "apache level" firewall.The reason for the apache-level firewall is two-fold.A There is no direct way for the Apache user to manipulate an iptables chain (as it doesn't run as root), and second; I was not happy with suid root access or other forms of message passing to a daemon which would manipulate the firewall for me.Architecture is thus, in httpd.conf place the following two...

PHP library release survey

PHP library release survey
The Apache Zeta Components project is currently discussing how to adjust the old eZ Components release process to the ASF guidelines. During this discussions, quite some ideas came up on how the process could be optimized. This brought my interest to how users of PHP libraries would actually like to obtain library code for their projects. I will publish the raw results of the survey later, so all of the PHP libraries and frameworks can benefit. So please take some minutes and fill out the form!

First-Class APIs

First-Class APIs
APIs are commonly an afterthought, like a hot tub awkwardly attached to a housea-aa shoehorned approach that produces a suboptimal app with scarce support that lacks documentation. In effect, APIs are the ugly stepchild of the Web. This is a sad reality that we are faced with, because many companies make their living consuming third-party APIs and mixing in their own data to create amazing and interesting mashups. In the initial phases of development, there is rarely enough money to develop the app and...

Protected: fun with arrays and requirement chains

Protected: fun with arrays and requirement chains
This post is password protected. To view it please enter your password below: Password:

DZone.com: Date and time in PHP 5

DZone.com: Date and time in PHP 5
New on the Web Builder Zone today, there's an article about DateTime in PHP5 from Giorgio Sironi introducing you to this very handy built-in feature.PHP has made some progress here as well, for example with the Standard Php Library and its interfaces. Though, the SPL is incomplete and oriented to performance more than to object-oriented programming: take a look at the SplStack and SplQueue implementation containing 20 different methods to get the idea. However a little gem is shipped with each PHP...