PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 1 to 20 of 197

PHPMaster.com: The Importance of Code Review

PHPMaster.com: The Importance of Code Review
PHPMaster.com has a new article about a practice that's becoming more popular in recent years to help increase the quality of code that comes out of development - code reviews.Every developer knows the pain of banal mistakes. A wrong attribute here, a misspelled property there, an accidentally duplicated line of code which you missed because of the coffee-fueled 16 hour hackathon you've been on. [...] Code review is simply the act of having someone else look at your code to find the mistakes you...

DZone.com: Sencha Touch 2 Models - Loading And Saving Model Data Using a Proxy, PHP Example

DZone.com: Sencha Touch 2 Models - Loading And Saving Model Data Using a Proxy, PHP Example
On DZone.com there's a new tutorial posted (by Jorge Ramon) about hooking together the models of Sencha's Touch 2 with a PHP backend to make saving data to them simpler via a proxy.Sencha Touch models have the ability to work with a proxy. This feature allows you to save and retrieve model data from the server, memory or local storage, without depending on a Sencha Touch data store. Let's try it with a very simple scenario where the server side is a PHP page.The article includes both the Javascript to...

Introducing: Treb - A simple framework for PHP

Introducing: Treb - A simple framework for PHP
I announced this on twitter yesterday, but figured I should blog about it a bit more today. As of yesterday, I published a new PHP Framework on github: Treb Yeah, I know, the world really doesn't need another PHP Framework, there are tons of them out there.A So why did I create this new one?AA Well honestly, I didn't set out to do so.AA You see at numerous previous jobs: Digg, TripAdvisor, HiiDef, mojoLive - I'd ended up building or extending custom frameworks for those specific applications. In all of...

Pivory.com: From Ajax to WebSocket with PHP, a Quick Example

Pivory.com: From Ajax to WebSocket with PHP, a Quick Example
On Pivory.com there's a new topic (tutorial) showing you a simple example of using WebSockets with the Ratchet PHP library, complete with sample code.WebSocket is the modern way for realtime two-way communications between server and browser. In the beginning we have Ajax calls [...] and with WS in picture the logic becomes [different]. [There] is a separate WS server, say listening on xxx.xxx.xxx.xxx:8080, and it can send messages to connected clients in realtime at any moment. The WS server can be in...

Reddit.com: PHP now, as an outdated developer

Reddit.com: PHP now, as an outdated developer
In this recent post to Reddit.com, the author recounts some of his past experience in technology and the steps he's taken along the way to improve himself. He's at a loss now, though, and wants recommendations for what to do next (a familiar situation for many):I started 12 years ago designing websites. back then the fun and the complexity were playing with css, javascript and dhtml. [...] So right now i need some advice because im kind of lost facing so many possibilities. I want to learn the MVC...

Justin Carmony: Refactoring or Rebuilding: Working with Legacy Code

Justin Carmony: Refactoring or Rebuilding: Working with Legacy Code
In this post to his site, Justin Carmony shares some of his experience in working with a legacy code base and shares some of the steps he's taking in his own work to modernize it.There is [still] one big piece written in a less than ideal system. Its still PHP, but much more hacked together. It is our backend CMS system for controlling the website. It is painful to use, and we get many complaints all the time about it. [...] on Twitter, I saw a link for a talk Paul M. Jones gave at the Nashville PHP...

Site News: Popular Posts for the Week of 08.31.2012

Site News: Popular Posts for the Week of 08.31.2012
Popular posts from PHPDeveloper.org for the past week:NetTuts.com: Automatic Testing for TDD with PHP PHPMaster.com: Explore Aspect Oriented Programming with CodeIgniter, Part 3 Pádraic Brady: PHP Security: Default Vulnerabilities, Security Omissions & Framing Programmer Project: Box - Making Creating PHARs Easier Matt Frost: Starting with Selenium (and Headless on a VM) Anthony Ferrara: Thoughts On PECL Frameworks DevShed Forums: PHP is a fractal of bad design? Hardly. Miro Svrtan: PHP Fatal errors...

PHP MySQL persistent, cached, pooled connection - for how long?

PHP MySQL persistent, cached, pooled connection - for how long?
It is a common question: what is the lifespan of a persistent, pooled, cached, however-you-call-it PHP MySQL connection? What about CGI, FastCGI, web server module? The answer is always the same. Standard I/O file handles, including socket connections, are bound to processes. The lifespan of a persistent, pooled, cached, however-it-is-to-be-called-in-context-x connection is that of the PHP process. Depending on the web server deployment model, a PHP process handles one or multiple web requests. Read on...

Reddit.com: Suggestions for a University Talk Covering a PHP Introduction

Reddit.com: Suggestions for a University Talk Covering a PHP Introduction
In this new post to Reddit, the author asks the community for suggestions for a talk they're giving at a university to cover the PHP language and some of its major features.I've been asked to give a 1.5-hour talk to university students about PHP. What helpful information should I not miss to impart? Little help please. I plan to name the talk "Why PHP?" to give an introduction of the language and give reasons why it's a good/bad career path. I'm also asked to show a short demo and show some past...

Dean Clatworthy: Theming/styling error messages in Symfony 2

Dean Clatworthy: Theming/styling error messages in Symfony 2
For the Symfony2 users out there, Dean Clatworthy has a handy tip to help you customize the output of your application a bit more - a method for styling the error messages coming from forms using a custom template.I spent a large portion of my day today trying to customize the HTML produced by Symfony 2 for form errors. The documentation has a section on how to do this, but for the life of me, I could not make it work. Here is a working, re-usable solution.His solution involves the creation of a template...

Miro Svrtan: Debugging Uploadify jQuery plugin with XDebug

Miro Svrtan: Debugging Uploadify jQuery plugin with XDebug
Miro Svrtan has a quick tip for those using the Uploadify plugin in their application's file uploads - how to enable XDebug debugging on each upload request.If you ever decided to use Uploadify jQuery plug-in you might have noticed problems with debugging remote PHP code that this plugin relies on. [...] Unfortunately setting this up will not work with Uploadify Flash version since calls to remote server side is not done inside browser but inside flash plugin. [...] Few months ago I found my self blindly...

Rob Allen: Setting up PHP & MySQL on OS X 10.8 Mountain Lion

Rob Allen: Setting up PHP & MySQL on OS X 10.8 Mountain Lion
Rob Allen has posted some notes to his site helping you get PHP set up on OSX Lion (10.8) successfully.With OS X 10.8, Apple continues to ship PHP 5.3 with Xdebug, PEAR, GD and PDO_MYSQL. This is how to set it up from a clean install of 10.8.He's broken it up into a few sections including the MySQL setup, Apache configuration, updating the main php.ini and setting up PHPUnit ("and friends") for your testing. He also includes setup instructions for the mcrypt and the PECL OAuth extensions.

PHPMaster.com: Patterns for Flexible View Handling, Part 1 - Working with Composites

PHPMaster.com: Patterns for Flexible View Handling, Part 1 - Working with Composites
PHPMaster.com has started up a new series today with the first part of a set of tutorials looking at design patterns that can be used in the handling of your views to make them more effective and easier to maintain.To overcome your skepticism [of an easy to use, flexible view system], in this two-part tutorial I'll show you how to implement from scratch a couple of customizable view handling modules by sinking our teeth into the goodies of the Composite and Decorator patterns.He starts off by creating a...

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:Tutorialzine.com: AJAX-enabled Sticky Notes With PHP & jQuery Joris de Wit's Blog: Extending different layouts for Ajax requests in Twig, Symfony2 Court Ewing's Blog: How PHP is Broken and How It Can Be Fixed DZone.com: There's no reason not to switch to DocBlox Liip Blog: 2-Step Verification with Google Authenticator and PHP Stefan Mischook's Blog: The 'Good Enough' Principle and PHP PHPBuilder.com: Building a Multilingual PHP Website C....

Content-Type Negotiation mit Symfony2

Content-Type Negotiation mit Symfony2
Die MAchtigkeit und Einfachheit des HTTP wird in vielerlei Hinsicht oft unterschAtzt. Der folgende Artikel stellt einen Aspekt vor, bei dem genau dies der Fall ist: Die Aushandlung des Formats, in welchem Daten per HTTP transportiert werden. Leider wird in den allermeisten HTTP-Applikationen Aber das Format der Antwort nicht verhandelt. Es werden beispielsweise GET-Requests kategorisch mit html beantwortet, ob ein Newsfeed als Atom oder RSS geliefert wird, entscheidet ein URL-Parameter. Auch ist das...

a dumb programming mistake

a dumb programming mistake
I had a couple of dumb development mistakes come and bite me in the butt this week, and I thought I'd share them here - well, at least one for now. Without going in to the type of data too much here - the specifics aren't important - the system I've got needed to show a list of data to a user.A Initially we just showed all the data to the one user.A Later, we added other user types.A However, my controller code (MVC-style) simply defined different views to use based on user type, but never changed the...

Liip Blog: Symfony documentation in French is online!

Liip Blog: Symfony documentation in French is online!
On the Liip blog Thomas Botton points out that the French translation of the Symfony documentation is no online and available for public consumption! He was a part of the group that worked on the translation.A year ago, I started to work with the Symfony documentation French translation team. At this time, I was actually not imagining that it would take so long to get all that work done.. In case you don't know, as of today, the Symfony documentation team already wrote more than 300 documents! Counting 1...

User Group - Lake/Kenosha County Hosts Elizabeth Naramore

User Group - Lake/Kenosha County Hosts Elizabeth Naramore
On Tuesday, September 11th, the Lake/Kenosha County PHP User Group will be hosting their next meeting - a special presentation from Elizabeth Naramore (a community evangelist from Engine Yard) with her talk "Get a Hammer for that Nail!"This month we have a special guest - PHP Luminary Liz Naramore! Liz currently works for the premier PHP PaaS provider EngineYard. She's a co-founder of phpWomen & is an active member of OINKPUG (the Ohio, Indiana, and Northern Kentucky PHP User Group). A frequent speaker...

ConFoo 2013 - Call for Papers is Now Open!

ConFoo 2013 - Call for Papers is Now Open!
ConFoo is one of the most important developer-oriented conferences loaded with PHP content. ConFoo 2013 will be held on February 25 through March 1 in Montreal, Canada. The team just opened its call for papers. Candidates can submit proposals until September 23. Consult the call for papers page for details and to start submitting. That page also explains what expenses ConFoo can cover for speakers. You can even get advice on how to write proposals. The call for papers is public, meaning that all...

DevShed Forums: PHP is a fractal of bad design? Hardly.

DevShed Forums: PHP is a fractal of bad design? Hardly.
A while back there was an article that put a negative spin on PHP ("PHP: a fractal of bad design") and there was a huge community response to it with over 1400 comments on the post itself. Over on the DevShed forums, there's a lengthy new post that goes back over that article, piece by piece, and evaluates everything that was said.As I've seen this article a number of times, I'd like to go through it to see what everyone has to say on the subject. Warning: This is just stupidly, ludicrously long. it...