PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

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

Why bother?

Why bother?
In my previous blog post I was brainstorming the possibility of collaboration between various frameworks to define a set of common interfaces. But I kind of failed to explain why this would be useful. Herman's "rebuttal" made this omission on my part quite clear. He and other critics of this idea pointed out that PHP's success over Java in the web world should be seen as an indicator that standardization efforts stifle innovation and slow down development. I totally see where this view point is coming...

Interfacing the PHP world

Interfacing the PHP world
I have done a few tweets in the past weeks hinting at wanting to create a set of common interfaces for things like logging, caching etc. Now I pondered this some more and there are a couple of problems which I am not yet sure how to overcome them. Obviously the goal would be to make it easier to drop in components from one library/framework into another. If you want to see a concrete case where such interfaces could help just have a look at the recently created Doctrine Search project which needs an HTTP...

Make php-fpm execute arbitrary PHP scripts via socket

Make php-fpm execute arbitrary PHP scripts via socket
We are using APC cache very heavily in our projects and during project deployment the cache must be flushed and warmed up. A common solution to warmup the APC cache is to fetch some special page via HTTP which does the job. The problem with this approach is that it's not reliable enough when PHP [...]

How to tell if you're a bad programmer

How to tell if you're a bad programmer
A great read: Bad Programmers

A new Openstreetmap API framework for PHP.

A new Openstreetmap API framework for PHP.
So over the last while, I've been working on a PHP package imaginatively named Services_Openstreetmap, for interacting with the openstreetmap API. I initially needed it so I could search for certain POIs and tabulate the results; it's now also capable of adding data to the openstreetmap database - nodes and other elements can be created, updated and so on. It will even access the details of the user that is being used to modify that data, which is one difference between it and the other single purpose...

Community News: CakePHP 2.0 Released (with some Major Changes)

Community News: CakePHP 2.0 Released (with some Major Changes)
The Bakery (a CakePHP site) has announced the release of CakePHP 2.0, a major shift in the framework with some very large changes to bring it up to the level of other full-stack frameworks currently offered for PHP.The CakePHP core team is very exited to announce a major jump in the version numbering. CakePHP 2.0 stable is out! we have put endless hours into this release and great ideas have made it into the the framework for this version. [...] The overall CakePHP ecosystem has also been improved. [...]...

Adam Patterson's Blog: DIY simple staging server.

Adam Patterson's Blog: DIY simple staging server.
Adam Peterson has posted an interesting idea for those out there running an internal staging server they want to constantly keep up to date with the main line of code (without manual intervention) - a git pull web frontend combined with git post-receive hooks.This [move from svn to git] left a bit of a gap in my process where I could no longer test on a remote server without updating it manually by S/FTP or opening terminal and manually calling a git pull. Open terminal and manually git pull it did break...

SitePoint Blog: Book Release - "PHP Master: Write Cutting-Edge PHP Code"

SitePoint Blog: Book Release - "PHP Master: Write Cutting-Edge PHP Code"
As is mentioned in this new post to the SitePoint blogs, a new book has been released (by SitePoint press, naturally) about "writing cutting-edge PHP code" by a few well known authors in the PHP community - Lorna Mitchell, Davey Shafik and Matthew Turland. Savvy PHP web developers can now keep ahead of the game and ensure that their PHP code is safe, secure, and well-structured for the future with the latest release from SitePoint: "PHP Master: Write Cutting-edge Code" by Lorna Mitchell, Davey Shafik,...

PHP Master Published by SitePoint

PHP Master Published by SitePoint
I'm very happy to announce that I've had a second book published: aoPHP Master: Writing Cutting-Edge Code.aAThis time, I had the honor and pleasure of co-authoring the content with my good friends and peers in the PHP community Lorna Jane Mitchell and Davey ShafikAand working with the excellent team at SitePoint to make it available to you. The book covers a number of fundamental skills for professional PHP developers including web services, design patterns, security, testing, and more. If you're in the...


Brian Swan's Blog: Using SQL Azure to Store PHP Session Data

Brian Swan's Blog: Using SQL Azure to Store PHP Session Data
In a recent post to his blog Brian Swan takes a look at working with sessions in PHP and, specifically, how to save them to Azure along with all of their data.In my last post, I looked at the session handling functionality that is built into the Windows Azure SDK for PHP, which uses Azure Tables or Azure Blobs for storing session data. As I wrote that post, I wondered how easy it would be to use SQL Azure to store session data, especially since using a database to store session data is a common and...

Site News: Popular Posts for the Week of 10.21.2011

Site News: Popular Posts for the Week of 10.21.2011
Popular posts from PHPDeveloper.org for the past week:Reddit.com: Which MVC framework has the best documentation and user community? Developer Drive Blog: How to Prevent a SQL Injection Attack DevShed: Service Layers in PHP Applications (a Series) NetTuts.com: The Ins and Outs of PHP Exceptions DeveloperDrive.com: What Web Developers Need to Know About Cross-Site Scripting DeveloperDrive.com: Common Mistakes to Avoid When Coding in PHP Site News: Popular Posts for the Week of 10.14.2011 Smashing...

Philip Norton's Blog: PHPNW11: A Review

Philip Norton's Blog: PHPNW11: A Review
Philip Norton has posted his extensive summary of his experience at this year's PHP North West conference in Manchester. He details each of the sessions he attended and various other conference-related activities including: Ian Barber's keynote "Standing On The Shoulders Of Giants" Sebastian Bergmann's "PHP Testers Toolbox" Rowan Merewood's "Estimation Or 'How To Dig Your Own Grave'" Paul Lemon's "Feeling Secure? Notes From The Field" Jacopo Romei's "Many To Many - No Man Is An Island" Check out the full...

Robert Basic's Blog: A Zend Framework 2 EventManager use case

Robert Basic's Blog: A Zend Framework 2 EventManager use case
Robert Basic has a new post to his blog today with an use case for Zend Framework 2's event manager to solve a problem he has with "repetitive code" in some of his models.Basically, this allows us to have one piece of code to trigger an event and to have one or more listeners listening to this event. When the event gets triggered, the listeners are called and then we can do *something*, like caching or logging. Logging or caching. [...] See, that's my problem. All the event examples stop at logging and...

Fixing the foundation of a standing house

Fixing the foundation of a standing house
I keep mentioning my stop building gold on top of crap blog post and here I go again. Basically the point of that blog post was that way too few PHP applications are build on top of a general purpose framework that enables developers to add custom functionality not directly related to the core of the application without having to commit suicide. Now I was arguing for these applications to adopt existing PHP frameworks. Obviously that would mean handing over quite a lot of control and for a large...

Ibuildings techPortal: PHPNW11 Conference Report

Ibuildings techPortal: PHPNW11 Conference Report
Marco Lopes has posted a wrapup of the PHP North West conference that he recently attended in Manchester. In it he talks about the tutorial sessions he attended the first day as well as the other shorter sessions later in the conference. His is the first summary of several Ibuildings employees that made it to the event.He covers the content presented by Arne Blankerts (of ThePHP.cc) about general applications security. His session covered security on various levels, not just in the PHP code - hardware,...

PHPMaster.com: PHP Namespaces

PHPMaster.com: PHP Namespaces
One of the features that's recently been introduced into the PHP language has been a feature for keeping code not only more organized, but more modular - namespacing (PHP 5.3+). In this new tutorial from PHPMaster.com they introduce you to this handy feature and include a bit of code showing their use.Namespaces were a long awaited feature in PHP. While many other important features were released with PHP 5, namespaces were not supported until version 5.3. This led to various techniques for emulating...

Community News: Zend Announces phpcloud.com (development/deployment platform)

Community News: Zend Announces phpcloud.com (development/deployment platform)
As mentioned in this post to The Register, Zend, a large player in the PHP market, has announced their own cloud-based platform for deploying PHP-based applications - phpcloud.com.Zend has announced a cloud for building and deploying PHP apps on other clouds - but without the management hassle. The PHP specialist has announced phpcloud.com, which it said was a technology platform and a partner ecosystem based on the company's Zend Framework and Server. Details are vague, but the technology platform...

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:Josh Holmes' Blog: Zend SimpleCloud and Azure Smashing Magazine: Common Security Mistakes in Web Applications Vance Lucas' Blog: Practical Uses for PHP 5.3 Closures Paul Jones' Blog: PHP Framework Benchmarks on Github Phil Sturgeon's Blog: CodeIgniter 2.0 is stable (enough) Zend Developer Zone: File uploads with Adobe Flex and Zend AMF PHPBuilder.com: Enforcing Coding Standards with PHP_CodeSniffer Site News: Popular Posts for the Week of...

SitePoint.com: How to Create an XML to JSON Proxy Server in PHP

SitePoint.com: How to Create an XML to JSON Proxy Server in PHP
On SitePoint.com today there's a new post from Craig Buckler showing you how to create a simple XML to JSON proxy server in PHP with a SimpleXML object at its heart.Unless you're new to this web development lark, you'll know the 'X' in 'AJAX' stands for XML - eXtensible Markup Language. But you're probably not using XML. If you are, you'd probably prefer not to. All the cool kids are using JSON or JSON-P: it has a smaller payload, is easier to use and faster to process. [...] Fortunately, there are a...