PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

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

I'm going nomad - introducing Nelmio

I'm going nomad - introducing Nelmio
After almost three years working at Liip, I have finally decided to take the plunge and start my own business. Together with Pierre Spring, in early May we will start building up Nelmio. Why? To keep it short, Liip is a great company to be employed at - and they're hiring - but both Pierre and I have had the urge to be our own bosses for a while, and that is something that's hard to suppress. Eventually we had to give in.What next? We're both web devs, with lots of experience across the board. Pierre is...

NetTuts.com: Protect a CodeIgniter Application Against CSRF

NetTuts.com: Protect a CodeIgniter Application Against CSRF
In a recent post to NetTuts.com, they show you how to protect your CodeIgniter application from cross-site request forgery (CSRF) attacks by using tokens in your forms and pages to make things more "one time" and unique to the site.In today's tutorial, we will learn how to painlessly protect your CodeIgniter (pre 2.0) application against Cross-Site Request Forgery attacks. The library we'll be creating today will automate all of the protection mechanisms, making your site stronger and more secure.They've...

My Favorite Design Patterns

My Favorite Design Patterns
Earlier this week, I taught a "php|architect Live" session on Object Oriented Programming: Principles & Practice. While preparing for the course, I realized that despite regularly talking about Design Patterns in the PHP community, we primarily talk about just a few. So while we complain about Singletons and celebrate MVC, we leave out many of the others that can make our lives easier and our code better.

DreamInCode.com: Preventing PHP Mail(...) Header Injections

DreamInCode.com: Preventing PHP Mail(...) Header Injections
On the Dream In Code forums there's a recent post showing you how to prevent mail() header injections when taking user input, like from a form.PHP's mail() function is a very useful and powerful function, even to the point that it is very easy to exploit. A way hackers exploit this function is a method called email header injection. [...] I'm sure most of you can already tell that's not going to be pretty since we didn't check the user input and so forth. PHP provides us with functions such as filter_var...

CodeIgniter.com: Tickets On Sale For CICON2011: The First US CodeIgniter Conference

CodeIgniter.com: Tickets On Sale For CICON2011: The First US CodeIgniter Conference
On CodeIgniter.com today there's an official release talking about this year's CodeIgniter-centric conference - CICON 2011 US - happening in New York August 20th and 21st.CICON2011 US is the first CodeIgniter-only conference in the United States, and will be taking place at New Work City in lower Manhattan, New York, on August 20-21 2011. Speakers including Zach Kitzmiller, Eric Barnes, Greg Aker, John Crepezzi, Dan Horrgian, and Kenny Katzgrau will be presenting and conducting masterclasses on topics...

Enforcing target descriptions within build files with a Git hook

Enforcing target descriptions within build files with a Git hook
When automating mundane tasks of a project or development environment with a build tool like Phing or Ant, the driving build file will naturally accumulate several targets and tasks over time. To ease the build file acceptance within a team and at a later stage also the contribution rate by team members, it's crucial that all build targets have a description attribute to provide at least a rough outline of the build features at hand. When these attributes are in place the (potential) build file user will...

Eric Hogue's Blog: Late Static Binding

Eric Hogue's Blog: Late Static Binding
Eric Hogue has a recent post to his blog looking at one of the more tricky aspects of the latest versions of PHP (the 5.3.x series) - late static binding. In a nutshell, late static binding (LSB) lets static classes and methods work more correctly than before. Eric gets into a bit more detail than that:It came out almost 2 years ago, but it to me that many programmers around me have no idea about it. Myself, I have learned about it around 6 months ago. The PHP documentation defines late static binding as...

Site News: Popular Posts for the Week of 04.22.2011

Site News: Popular Posts for the Week of 04.22.2011
Popular posts from PHPDeveloper.org for the past week:Kenny Meyers' Blog: How CodeIgniter Works (Video from EECI 2010) Community News: IPC10 - PHP: Yesterdays Scala and the Cobol of tomorrow? (video) Victor Farazdagi's Blog: New Project: Phrozn - static site generator in PHP WebTutor.pl: HipHop for PHP: Benchmark - Revenge of PHP DZone.com: What I Love/Hate About PHP Site News: Popular Posts for the Week of 04.15.2011 Project: Guzzle - RESTful web service client development framework Zend Developer Zone:...

PHP replication plugin statistics and troubleshooting

PHP replication plugin statistics and troubleshooting
The PHP replication and load balancing mysqlnd plugin as been released as an alpha through PECL. Alpha is for those who want to try out the 1.0 feature set as early as possible. Alpha is for those who do not fear debugging, if need be. Notes on troubleshooting. Testing load balancing and read/write split There are three ways to verify that load balancing and read/write split works as it should: within PHP script: checking thread/connection ids within PHP script: monitoring statistics externally:...

Community News: Dutch PHP Conference - Update on DPC Uncon

Community News: Dutch PHP Conference - Update on DPC Uncon
On the Dutch PHP Conference's site today there's a new post from Stefan Koopmanschap, the organizer of this year's DPC Unconference, talking about some of the recent advancements in it's organization.Last year we introduced the uncon track at Dutch PHP Conference, a separate track next to the conference tracks where you, the attendees of the conference, could be the speaker. [...] It was a great success thanks to all the speakers who stepped up to take an open slot and present their topic. [...] This...

Project: Mink library integration bundle for Symfony2 (for Behat)

Project: Mink library integration bundle for Symfony2 (for Behat)
Konstantin Kudryashov has linked to a new tool that's adds BehatMink browser abstraction library for your Symfony2 project as a part of the Behat project (a BDD testing tool for PHP).You can now test your Symfony2 applications with PHPUnit and Mink, thanks to brand new MinkBundle.This new tool provides a clean API, support for Symfony2's test.client browser emulator and support for the Goutte and Sahi browser emulators as well. In the README on it's github page, they've provided some sample code snippets...

Phil Sturgeon's Blog: The CodeIgniter Community goes on holiday to NYC

Phil Sturgeon's Blog: The CodeIgniter Community goes on holiday to NYC
In a new post to his blog Phil Sturgeon talks about a new CodeIgniter-related conference coming to New York in August - CICON2011.The CodeIgniter Community has decided to have a little holiday this summer, and head to New York for not just a meet up, but the biggest gathering of CodeIgniter developers to ever happen. The last event was in a pokey low budget venue in a rough part of Bristol UK, this event will be right bang smack in the middle of Manhatten, NY with a great venue and some amazing...

Community News: PHP Community Conference Live Video Stream

Community News: PHP Community Conference Live Video Stream
If you weren't able to make it to the PHP Community Conference, you're in luck! They're providing a live video stream from the event on OpenEvent.tv.Check out today's schedule for more information what the sessions are and summaries of what they're about. This morning's sessions are tutorials from Lorna Mitchell (web services) and Matthew Weier O'Phinney (Mastering Zend Framework 2 Patterns).You can also follow the official conference twitter account at @phpcomcon for the latest updates.

Script-Tutorials.com: How to parse web pages using XPath

Script-Tutorials.com: How to parse web pages using XPath
On the Script-Tutorials.com site there's a new article showing you how to use XPath to parse web pages, complete with screenshots of the page and the code to make it happen.Today I will tell you how you can make parsers of remote HTML pages (in PHP). In this article I will show you how to perform xpath queries to Web pages. XPath - a query language to elements of xml or xhtml document. To obtain the necessary data, we just need to create the necessary query. For the work, we also need: browser Mozilla...

Chris (Enygma) Cornutt explains that "It's Not Just About the News"

Chris (Enygma) Cornutt explains that "It's Not Just About the News"
PHP community luminary Chris Cornutt just wrote a post for the PHPD eveloper.org blog titled aoIt's Not Just About the Newsa. Click on inside for a totally un-biased and totally fair evaluation of this freakin awesome article written by one of the Saints of the PHP community.

Eric Hogue explains Late Static Binding

Eric Hogue explains Late Static Binding
Eric Hogue - a name that regular readers will remember from our recent coverage of his post on profiling - has written another short but informative piece on the topic of Late Static Binding. Click on in, let's pretend I've written an in-depth analysis of his post.

aoIt's Not Just About the Newsa

aoIt's Not Just About the Newsa
Originally, I was going to present these thoughts at the PHP Community Conference (in a session titled aoIt's not Just About the Newsa) but it didn't work out for me to be there. I still wanted to share some of my thoughts and experience in running PHPDeveloper.org for the last 11 years. In its very first form, PHPDeveloper.org was just a page of links. It was hosted on a local server I had at the collegel I attended and was aliased to the outside world under the hostname aobender.ods.orga. I started...

Voices of the ElePHPant: Interview with Ed Finkler

Voices of the ElePHPant: Interview with Ed Finkler
The Voices of the ElePHPant podcast has posted their latest episode - an interview with Ed Finkler, best known for his work on the Spaz Twitter client.Cal interviews Ed and asks him his "three questions" about this Open Source project (Spaz): At what point did you realize you couldn't do it all yourself and what was the first role you created for someone else? What ways do you use to communicate with your developer community and which works the best? Other than coding, what's the most fun part about...

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:Community News: php|architect Releases "Guide to Web Scraping" PHPBuilder.com: Six Cool PHP Tricks You May Not Know php|architect: Introducing four new PHP 5.3 components and Goutte, a simple web scraper Brian Swan's Blog: PDO Cheat Sheet for SQL Server Driver for PHP Architexa Blog: Simplifying Dependency Injection Dougal Campbell's Blog: WordPress as a Forum? The Bakery: Deploying CakePHP with Capistrano Perforce Software: Seven Pillars...

WebTutor.pl: HipHop for PHP: Benchmark - Revenge of PHP

WebTutor.pl: HipHop for PHP: Benchmark - Revenge of PHP
On the WebTutor.pl site they've posted the second part of their series looking at the benchmark results from their tests running HipHop. You can find their first post with some of the introductory setup and information here.In previous article I measured the performance of HipHop for PHP by performing some tests downloaded from the shootout.alioth.debian.org website. Unfortunately the test list was incomplete. Only six tests were selected to avoid potential incompatibility issues with the HipHop...