PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 3981 to 4000 of 6889

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

Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 2

Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 2
Web Developer Juice has posted the second part of their series looking at some of the "magic functions" that PHP has to offer - special functions that do automagic things in your scripts and classes. Part one can be found here.In my previous post (PHP Magic Functions), I discussed about __construct, __destruct, __call and __callStatic. Lets explore a few more magic functions...In this latest part of the series they look at three functions: __set/__get __invoke

Johannes Schluter's Blog: Escaping from the statement mess

Johannes Schluter's Blog: Escaping from the statement mess
In a new post to his blog Johannes Schluter suggests an alternative to using prepared statements in PHP applications using a database - creating a handler method that allows for dynamic queries as well as proper escaping of values.Now prepared statements were a nice invention some 30 years ago abut they weren't meant for making things secure and so they do have some shortcomings: One issue is that preparing and executing a query adds a round-trip to the server where it then requires resources. [...] With...

Ralph Schindler's Blog: Learning About Dependency Injection and PHP

Ralph Schindler's Blog: Learning About Dependency Injection and PHP
Ralph Schindler has a new post to his blog describing some of the what he's done to understand dependency injection in PHP and includes some illustrations to share that information.Whatever the reason, one of the newest concepts (at least over the past 3 years or so) that has emerged as one of our heated topics of debate is how to manage object dependencies. Interestingly, the argument of how to manage dependencies is generally named by the solution which it's proponents give as the solution: dependency...

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:PHPFreak.dk: Review: NetBeans 6.9 Beta for PHP Test.icial.ly Blog: Why are interfaces widely ignored in the PHP world... DealTaker Blog: PHP & MongoDB Sitting in a Tree: Part 1 The Register: Exam board deletes C and PHP from CompSci A-levels Raphael Stolt's Blog: Installing the PHP redis extension on Mac OS X Phil Sturgeon's Blog: CloudIgniter: Easy hosting for CodeIgniter PHPClasses.org: Book Review: Expert PHP and MySQL Maarten Balliauw's...

Top 10 Reasons Why Firefox is still Better than Chrome for Web Development

Top 10 Reasons Why Firefox is still Better than Chrome for Web Development
Top 10 Reasons Why Firefox is still Better than Chrome for Web Development By Manuel Lemos Sometime ago many of us, Web developers, have switched from using Firefox to Google Chrome because of important features like speed. Now that Firefox 4 was launched it addressed some of the issues we had with past versions, thus making it better at least for Web development. This article explains some of the top reasons why Firefox is still a better browser than Google Chrome to aid in our Web development work.

Liip @ JSDay/PHPDay in Verona, Italy

Liip @ JSDay/PHPDay in Verona, Italy
Earlier this year one of my colleagues told me during the daily scrum that he plans to attend the PHP conference PHPDay in Verona, Italy. I thought that was an excellent idea and bought a ticket the same day. It turned out that at the same time and place also the JSDayAwould take place, the first Javascript conference in Italy ever. That was just perfect since so far I was always a little scared of writing Javascript because I had basically no experience in doing so. I'm not saying that I became a...

Latest PHP Tweets