PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 61 to 80 of 215

The new era of PHP frameworks

The new era of PHP frameworks
I have just posted a new article called The new era of PHP frameworks, which follows what I talked about at Dutch PHP Conference last week. I have worked on a lot of different systems and projects in my years and most of that was spent doing PHP. However just recently I have noticed a new major point in time - a new era of PHP frameworks. Seems like everything is changing these days. I want to discuss what I think the current state is, what's wrong with it and how the new gang of frameworks is going to...

Symfony Blog: Symfony2: Annotations gets better

Symfony Blog: Symfony2: Annotations gets better
Fabien Potencier has posted another in his "getting better" series looking at the features that are included in the Symfony2 framework. In this new post he talks about the improvement annotation support.Later today, I will release Symfony2 beta2. But first, I wanted to talk about a big change that landed into master yesterday. As you might know, Symfony2 uses annotations for Doctrine mapping information and validation configuration. Of course, it is entirely optional, and the same can be done with XML,...

Where has all the remote work gone?

Where has all the remote work gone?
To continue my series chronicling my current job search, I come to this interesting observation:A aoWhat happened to remote work?a Back 2-5 years ago, Remote Work was the upcoming akiller feature' of job listings.A The nature of aprogramming' leads itself really well to remote work and that's why I've worked remotely for the last 4 companies/positions that I've had. Programming (and related tasks) tends to focus around semi-regular checkpoints (weekly, daily) where everyone needs to understand the tasks...

Backported ZF2 Autoloaders

In the past six weeks, I've delivered both a webinar and a tutorial on Zend Framework 2 development patterns. The first pattern I've explored is our new suite of autoloaders, which are aimed at both performance and rapid application development -- the latter has always been true, as we've followed PEAR standards, but the former has been elusive within the 1.X series. Interestingly, I've had quite some number of folks ask if they can use the new autoloaders in their Zend Framework 1 development. The short...

Zend Developer Zone: The HackForGood Evenings - San Francisco

Zend Developer Zone: The HackForGood Evenings - San Francisco
On the Zend Developer Zone David Coallier has a post about an effort starting up in San Francisco called the HackForGood Evening where developers come together to work on software with the sole purpose of helping make the lives of other people better (those who can't do for themselves).Starting from there we realised that the idea and purpose of writing software to help the lives of the people around us was exactly what we are about but more importantly, this was an idea that should happen more than...

Till Klampaeckel's Blog: Yahoo: oauth_problem=consumer_key_rejected

Till Klampaeckel's Blog: Yahoo: oauth_problem=consumer_key_rejected
During some of his work with the Yahoo! Search Boss API, Till Klampaeckel came across an issue with the OAuth connection causing an error of "oauth_problem=consumer_key_rejected" with his Zend Framework-based application.The above process doesn't even take five minutes, but then I spent eight hours figuring out what oauth_problem=consumer_key_rejected means. Spent a couple hours googling, reading bug reports and even posted to the Yahoo! group associated with Search Boss. To cut to the chase: When you...

Jani Hartikainen's Blog: You don't need a service layer: Fat controllers are okay

Jani Hartikainen's Blog: You don't need a service layer: Fat controllers are okay
Jani Hartikainen has a new post to his blog today about why, in your framework-based applications, it's okay to have "fat controllers" instead of a service layer.Here's a counterpoint to the currently popular view of "fat controllers are bad", and the current fad of everyone and their cousin implementing service layers: You don't need one. Fat controllers are okay too.He starts by explaining the "why you don't need a service layer" part, mentioning that keeping it in the controller keeps things simple...

Yahoo: oauth_problem=consumer_key_rejected

Yahoo: oauth_problem=consumer_key_rejected
Here's how I literally wasted eight hours of my life. :-) We signed up for Yahoo! Search Boss last week. The process itself was pretty straight: Sign into your Yahoo! account at https://developer.apps.yahoo.com/ Click "New Project", fill out the form. Then click on the project name, activate "Yahoo! Search Boss" by suppling some billing info. Consumer key rejected? The above process doesn't even take five minutes, but then I spent eight hours figuring out what oauth_problem=consumer_key_rejected means....

The HackForGood Evenings - San Francisco

The HackForGood Evenings - San Francisco
Starting from there we realised that the idea and purpose of writing software to help the lives of the people around us was exactly what we are about but more importantly, this was an idea that should happen more than once. The HackForGood evenings were born.

aoThe Web is Newa syndrome

aoThe Web is Newa syndrome
Following up to my last post about my job search, I'd like to touch on another interesting point I ran into during this round of job discussions. I'm dubbing it: aoThe Web is Newa It's hard to exactly put a finger on it, but basically, when looking for web work nowadays, there is this mentality that the Web is a new thing.A Invented just a few years ago.AA Almost like the DotCom doom never happened and the web was invented since then. This mentality doesn't seem to matter if it's a startup, or a big...

NetTuts.com: Create WordPress Plugins with OOP Techniques

NetTuts.com: Create WordPress Plugins with OOP Techniques
On NetTuts.com today there's a guide to help you create WordPress plugins with object-oriented code instead of procedural method. This means better encapsulation, reusability and more maintainable code.Object-oriented code, among other things, can help organize and add reusability to your code. In this tutorial, I will teach you the basics of writing a WordPress plugin using object oriented techniques. We'll be using Dribble's API as an example for this tutorial.They walk you through a brief explanation...

Timothy Boronczyk's Blog: Spaghetti Code Considered Harmful

Timothy Boronczyk's Blog: Spaghetti Code Considered Harmful
Timothy Boronczyk has a new post to his blog proposing something that any veteran developer already knows - "spaghetti code" is harmful to the health of your application. He's done a little research, though, and tried to explore what this "bad code" really is.The phrase "spaghetti code" is an all-too-common pejorative we programmers use to describe horrible code, whether it's difficult to understand, poorly organized, or just plain long-winded. And there-in lays the problem. What really constitutes...

Josh Adell's Blog: Logging User Sessions Across Requests

Josh Adell's Blog: Logging User Sessions Across Requests
Josh Adell has a new post to the Everyman Software blog talking about a solution he and his team have developed for logging user sessions across requests with the help of the Zend_Log component and a custom logging formatter.One way to handle this is to put a request-specific identifier in every log message. But I shouldn't have to remember to append or prepend the identifier to their log messages. I'd rather have it happen automatically, without me or my teammates having to think about it. Here's a...

Lorna Mitchell's Blog: PHP OAuth Provider: Request Tokens

Lorna Mitchell's Blog: PHP OAuth Provider: Request Tokens
In the next of her series looking at OAuth in PHP, Lorna Mitchell has posted a look at request tokens and how to hand them out via your application.The consumer requests a request token (see my earlier post about consuming OAuth), and as a provider, we need to handle that request. In my example, I chose to pass the variables as GET parameters, but you could adapt this to handle POST variables or information contained in HTTP headers.She includes the code (using the functionality of the pecl_oauth...

PHP SVM Extension

PHP SVM Extension
Ahead of referencing it at my PHP Tek 11 talk, I finally got round to pushing the LibSVM extension I knocked up (with the help of Mikko) into PECL. You'll need libsvm out of package management (e.g. apt-get install libsvm-dev or yum install libsvm-devel), and the pecl package to try it: pecl install svm-beta The documentation is in the PHP manual, and being that it's fairly early days I would really appreciate anyone that has familiarity with SVM to have a go with the extension, and let me know how it...

Site News: Popular Posts for the Week of 05.20.2011

Site News: Popular Posts for the Week of 05.20.2011
Popular posts from PHPDeveloper.org for the past week:Chris Jones' Blog: Oracle Tuxedo: A New way to Run PHP Applications Brian Swan's Blog: Book Review: Easy PHP Websites with the Zend Framework Jason Gilmore's Blog: Sixteen Best Practices- and Productivity-Related PHP Tutorials XPertDeveloper.com: Is Your PHP Application Affected by the Y2K38? Lorna Mitchell's Blog: Idiot-Proof Deployment with Phing Shay Ben Moshe's Blog: Hashing Passwords Properly Site News: Popular Posts for the Week of 05.13.2011...

Wonders of Global Transaction ID injection

Wonders of Global Transaction ID injection
SQL injection is wonderful! MySQL Proxy can do it, mysqlnd plugins - even written in PHP (not Lua or C) - can do it. Global Transaction IDs are wonderful. A mashup of the PHP replication plugin and global transaction ID injection, makes your replication cluster fail-over much smoother ...

PHP OAuth Provider: Request Tokens

PHP OAuth Provider: Request Tokens
I've been working with OAuth, as a provider and consumer, and there isn't a lot of documentation around it for PHP at the moment so I thought I'd share my experience in this series of articles. This relates to the stable OAuth 1.0a spec, however OAuth2 has already started to be adopted (and differs greatly). This article uses the pecl_oauth extension and builds on Rasmus' OAuth Provider post. The consumer requests a request token (see my earlier post about consuming OAuth), and as a provider, we need to...

Martin Sik's Blog: How to "steal" Google's "did you mean" feature

Martin Sik's Blog: How to "steal" Google's "did you mean" feature
In a a new tutorial posted on his blog Martin Sik shows you how to "steal" the "did you mean..." functionality that Google's sites currently offer. His example uses cURL to get the current Google request URLs and fetch the associated results.I really like Google and the classic "did you mean" feature is really great, unfortunately when I wanted to implement it into my project a realized that it's not provided by any of Google's APIs. [...] I believe for most developers [having a large dictionary and...

Artur Graniszewski's Blog: Drupal 7: HipHop for PHP vs APC - benchmark

Artur Graniszewski's Blog: Drupal 7: HipHop for PHP vs APC - benchmark
Artur Graniszewski has written up a comparison of the performance of a standard Durpal 7 installation using HipHop versus APC to handle the optimization of the application.There have been many suggestions on improving Drupal performance, some of them recommend the use of APC module, data caching, or even compilation of the entire system through HipHop for PHP. While the first two solutions have been successfully implemented, no one was able to perform the build process. After many battles with the the...