PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 81 to 100 of 103

Deploying app updates to a cluster

Deploying app updates to a cluster
So William was asking on twitter how to best deploy symfony apps to a cluster of servers. There are actually some nice deployment tools inside the symfony cli that ease deployment to a single server, but that doesn't really cover the cluster case. Actually I assume that if you have a cluster of servers the best deployment strategy should probably be optimized against your specific use case. But let's make this question a bit more general: How do you deploy updates to your PHP apps running a clustered...

Your Open Source Stories

Your Open Source Stories
In this post, I am asking for your help and input, although it might seem like a post about nothing in particular to begin with. Please keep reading! Last month, I gave a talk at TEK-X entitled "Open Source Your Career". Personally I think that a lot of the high fliers in this profession use their community activities as a boost to their professional development, and I know that this has been true for me too. So in my talk I told stories about situations I'd met in my professional life and how I'd...

twilioKit php starter kit

twilioKit php starter kit
I've adapted my ZFKit for an upcoming Twilio presentation (codestock next weekend!) and created a new project on github for it under the project name atwiliokita. AZFKit was updated a little bit (a basic menu/navigation was added with Zend_Navigation, some example unit tests added) and used as the basis for this. You can see this in action if you want to play around with it a bit. I've modified the twilio REST client available from Twilio.com. AWhile functional, it wasn't the easiest thing to use, and...

Dutch PHP (un)Conference 2010

Dutch PHP (un)Conference 2010
About a week ago Amsterdam was shaking since Ibuildings organized another edition of the Dutch PHP Conference at the RAI, hosted by Lorna Jane (@lornajane).This year was also the first time uncon sessions were available for the audience to give 15 minutes (lightning) talks or full 45 minutes presentations. Both Stefan Koopmanschap (@skoop) and I (@DragonBe) were given the honor to host these sessions as part of our community involvement with the PHP user group PHPBenelux (@phpbenelux).Since we were...

PHP generated code tricks

PHP generated code tricks
Something that is great about PHP is that you can write code that generates more PHP code to be used later. Now, I am not saying this a best practice. I am sure it violates some rule in some book somewhere. But, sometimes you need to be a rule breaker. A simple example is taking a database of configuration information and dumping it to an array. We do this for each publication we operate. We have a publication table. It contains the name, base URL and other stuff that is specific to that publication....

Otto on WordPress: WordPress 3.0: Multisite Domain Mapping Tutorial

Otto on WordPress: WordPress 3.0: Multisite Domain Mapping Tutorial
From the Otto on WordPress blog there's a recent post (made more useful by the release of WordPress 3) about how to use the multi-site abilities of this latest version to create multiple sites with their own domain names attached to each.The other day, Klint Finley wrote a very good walkthrough of using the new Multisite functionality of WordPress 3.0. In the comments, a lot of people wanted to know how to use your own Top-Level-Domains. Since I'm doing that now, here's a quick walkthrough/how-to...

Zend Developer Zone: Announcing The June ZF Bug Hunting Days

Zend Developer Zone: Announcing The June ZF Bug Hunting Days
On the Zend Developer Zone today there's an announcement from Ralph Schindler about this month's Bug Hunt Days (for June 2010):It's that time of the month again- but this time with a twist! Today [June 17th], Tomorrow and Saturday, 17-19 June 2010, Zend Framework will host its monthly bug hunt. You read that right! We are adding Saturday into the event for those developers who want to do a little weekend bug hunting. For those of you unfamiliar with the event, each month, we organize the community to...

ThinkPHP Blog: Benchmarking & optimizing real-world scenarios in a business context

ThinkPHP Blog: Benchmarking & optimizing real-world scenarios in a business context
On the ThinkPHP blog today there's a new article looking at some of the best practices they seen when it comes to profiling and benchmarking your PHP-based applications.Over the years, PHP has evolved from a script language to a programming language used in big applications with high-level architectures. As the most popular language for web applications, PHP is very fast, robust and stable by default. Coming from tiny scripts, PHP is used in large-scale web applications nowadays. In terms of business...

NETTUTS.com: How to Write a "Most Popular By Views" WordPress Plugin

NETTUTS.com: How to Write a "Most Popular By Views" WordPress Plugin
On NETTUTS.com today there's a new tutorial for the WordPress users/developers out there showing you how to create a "Most Popular By Views" plugin for your site.As you continue writing for WordPress more and more, the level of difficulty and complexity of your plugins will eventually reach far beyond the simple back-end data manipulation, as demonstrated in our beginner's article. In this installment we'll cover in-depth: database interaction, Admin Widgets, and Sidebar Widgets. Today's example will be...

Zend Framework Tutorial Series: Part 2 - Debugging your application

Zend Framework Tutorial Series: Part 2 - Debugging your application
Continuing with the tutorial series, we will see how to debug the application we created in the #1 series of the tutorials. In case you missed it, in our first tutorial, we have seen how to structure and code a brand new ZF application to use modules (you can also view that article here) Debugging include easy to use methods of printing data on the screen, including ZFDebug Toolbar in order to manage all errors and queries, using the logger to log messages to Firebug, using a simple debug function that...

Announcing The June ZF Bug Hunting Days

Announcing The June ZF Bug Hunting Days
It's that time of the month again- but this time with a twist! Today, Tomorrow and Saturday, 17-19 June 2010, Zend Framework will host its monthly bug hunt. You read that right! We are adding Saturday into the event for those developers who want to do a little weekend bug hunting . For those of you unfamiliar with the event, each month, we organize the community to help reduce the number of open issues reported against the framework. Past events have netted over a 100 issues closed in just two days. We'd...

Adding a Contact Form Screencast

We've just added a new video to the Recite YouTube channel which shows you how easy it is to add a contact form with custom fields to your web site with Recite CMS. Transcript[0:04] In this screencast I'm going to add a page to a Recite web site and then add a contact form to it, and show you how easy this whole process is.[0:14] I'm going to start with the site we used in the Recite Getting Started video (you can find that on the Recite home page). Let's just take a look at this site. And it's this...

State of Zend Framework 2.0

The past few months have kept myself and my team quite busy, as we've turned our attentions from maintenance of the Zend Framework 1.X series to Zend Framework 2.0. I've been fielding questions regularly about ZF2 lately, and felt it was time to talk about the roadmap for ZF2, what we've done so far, and how the community can help. Continue reading "State of Zend Framework 2.0"

Pragmatic Bookshelf: SQL Antipatterns: Avoiding the Pitfalls of Database Programming

Pragmatic Bookshelf: SQL Antipatterns: Avoiding the Pitfalls of Database Programming
Bill Karwin has helped thousands of people write better SQL and build stronger relational databases. Now he's sharing his collection of antipatterns-the most common errors he's identified in those thousands of requests for help. Most developers aren't SQL experts, and most of the SQL that gets used is inefficient, hard to maintain, and sometimes just plain wrong. This book shows you all the common mistakes, and then leads you through the best fixes. What's more, it shows you what's behind these fixes,...

Implementing the Observer Pattern with SplObserver and SplSubject

Implementing the Observer Pattern with SplObserver and SplSubject
As PHP applications grow into complex object-oriented systems, developers look to create centralized components to execute repetitive tasks. These include logging, emailing, redirects, and more. The Observer pattern is a commonly used design pattern to hook such components into an application during runtime, thereby making them reusable. Since PHP 5.1, there are two interfaces built into the Standard PHP Library (SPL) that can be implemented to use the Observer pattern in your application. They are...

Recite CMS 2.1.16 Released

Today we released Recite 2.1.16, which represents a number of performance improvements and other minor interface tweaks. We encourage all users to upgrade via Recite adminstration to take advantage of the latest improvements. In addition to the new version of Recite CMS, there are updates available for a number of packages. These can also be upgraded via the administration site.Some of the key improvements in this release include: Improved MIME detection to be more reliable and quicker Multiple...

Subscribe to Recite's new Video Channel!

We've just created a channel on YouTube to showcase our screencasts of using Recite CMS. All new videos we create will be published to the channel under the username ReciteCMS! To celebrate the creation of our YouTube channel, we've created a new container rule for Recite CMS for publishing YouTube videos on your own web site! All users receive this new feature automatically when they upgrade the feeds package.We've created a videos page on this website using this new container rule. This page lists all...

Zend Framework Module Based Application

Zend Framework Module Based Application
In this first article of the series, we will discuss about the best way (in my opinion) to structure your Zend Application in order to have maximum flexibility but also a good defined structure of the classes/files. These will be a series of tutorials which are meant to show you or guide you through developing a complex application with Zend Framework 1.10.The series consists of the following parts: a) Setting up a module based application b) Setting up helper plugins, methods & debugging with ZFD ebug...

Getting Started with MongoDB and PHP

Getting Started with MongoDB and PHP
Schema-less database systems like MongoDB are quickly becoming popular with Web developers on account of their flexibility, simplicity and easy integration with modern Web technologies such as JSON. This article introduces you to MongoDB and shows you how to install it, set up an initial data store, and access it with PHP.

PHP | OSI Days 2010: Participate at the confluence of PHP's finest!

PHP | OSI Days 2010: Participate at the confluence of PHP's finest!
PHP | OSI Days 2010 is the premier PHP conference being organised at Asia's largest Open Source Conference - OSI Days 2010. We invite you to come and lead a tutorial / session or participate in Panel Discussions at OSI Days 2010 specifically for the PHP domain. The last date for submitting a proposal for the conference is 15th June 2010. The conference is scheduled for September 19-21, 2010 at Chennai, India. Submit a proposal now! If you are one of the following: Open Source Enthusiast Developer/...