PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 141 to 160 of 251

Enrise.com: REST Style Context Switching - Part 2

Enrise.com: REST Style Context Switching - Part 2
Joshua Thijssen has written up a new post for the Enrise blog today about using REST-style context switching in Zend Framework applications with the help of a handy "RestContextSwitch" helper.In the first part of this blog post we've talked about the theory behind REST services. In this post we put the theory into practice with the help of some code snippets you can implement in your own application.He starts by helping you create a simple REST controller (well, cut-and-pasteable code, really) that can...

Google and H.264 - Far From Hypocritical?

Google and H.264 - Far From Hypocritical?
Simon Phipps, on the Google dropping H.264 from Chrome debacle: But all these points are also true of Adobe Flash. So why not drop that too? Is it not hyprocritical to keep it? If you're an absolutist, probably yes. But there's a calculation going on here about steering the web into the level plains of truly open standards. H.264 support in the tag is not the same as Flash support. Simon (whom I greatly respect) makes some great points in his essay-primarily outlining the fact that an honest analysis1 of...

CodeFury.net: CodeIgniter/PHP + IIS + MySQL + MSSQL: It Works!

CodeFury.net: CodeIgniter/PHP + IIS + MySQL + MSSQL: It Works!
Kenny Katzgrau has a recent post on the Code Fury blog talking about the combination of CodeIgniter, IIS, MySQL and MSSQL and how it all works in his installation (after a few small gotchas).There are a lot of people out there who call themselves "LAMP" developers - short for Linux, Apache, MySQL, PHP. That's the standard configuration for production PHP applications. Recently, I ended up having to build a CodeIgniter application on Windows, IIS, Mysql+MS-SQL, and PHP. Sound like there are bound to be...

Enrise.com: Using MemcacheQ as Message Queue

Enrise.com: Using MemcacheQ as Message Queue
Tim de Pater has a new post to the Enrise blog showing how you can use the MemcacheQ tool to act as a message queue for an application.Using a message queue can help to suspend heavy processes and execute them later so you won't bother your visitors with long waiting times. There are a few solutions for queuing like Gearman, ActiveMQ and Zend Server Job Queue. For www.nd.nl (a Dutch newspaper) we wanted a simple and free queue mechanism that integrates with Zend Framework for handling a number of jobs....

Developer.com: 9 More Crazy, Experimental PHP Development Projects

Developer.com: 9 More Crazy, Experimental PHP Development Projects
On Developer.com today Jason Gilmore shares nine (more) experimental PHP projects he thinks you should at least know about, maybe even use.The Developer.com article I wrote last year, 10 Experimental PHP Projects Pushing the Envelope, was originally intended to be little more than an homage to nontraditional PHP efforts that stretched beyond standard Web application development tools such as PHP-GTK and phpList. [...] Not only did this article turn out to be very entertaining to write, but it wound up...

PHPBuilder.com: Implementing Internet Protocols with PHP

PHPBuilder.com: Implementing Internet Protocols with PHP
On PHPBuilder.com today there's a new tutorial from Leidago Noabeb that looks at implementing internet protocols - in this case FTP.PHP has many functions that help us to implement Internet and/or networking protocols. In this article we will look at how to implement some of those protocols using PHP.His examples uses PHP's FTP methods to create a simple frontend to a remote FTP server. Included is the code to get the basics of it working - listing remote files and displaying them out in a styled list.

Why a project switched from Google Search Appliance to Zend_Lucene

Why a project switched from Google Search Appliance to Zend_Lucene
Google technology does a good job when searching the wild and treacherous realms of the public internet. However, the commercial Google Search Appliance (GSA) sold for searching intranet websites did not convince me at all. For a client, we first had to integrate the GSA, later we reimplemented search with Zend_Lucene. Some thoughts comparing the two search solutions. This post became rather lengthy. If you just want the summary of my pro and con for GSA versus Lucene, scroll right to the end :-) In 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:ProDevTips.com: Simple jQuery and PHP CRUD interface Tutorialzine.com: Advanced Event Timeline With PHP, CSS & jQuery Brendon's Blog: 10 PHP functions you (probably) never use Ibuildings techPortal: Learning PHP 5.3 by writing your own ORM PHPBuilder.com: Build a PHP Link Scraper with cURL Adam Jensen's Blog: Cron tasks in Zend Framework apps Erling Alf Ellingsen's Blog: PHP Must Die Giorgio Sironi's Blog: Practical PHP Patterns Richard...

WSGI for Python

WSGI for Python
Python specification for a Web Server Gateway Interface has been accepted, with quite ambitious goals: If middleware can be both simple and robust, and WSGI is widely available in servers and frameworks, it allows for the possibility of an entirely new kind of Python web application framework: one consisting of loosely-coupled WSGI middleware components. Indeed, existing framework authors may even choose to refactor their frameworks' existing services to be provided in this way, becoming more like...

Join the IKS Semantic Editing hackathon in February

Join the IKS Semantic Editing hackathon in February
IKS, the EU-funded effort to add semantic capabilities to open source CMSs, will organize a semantic editing hackathon in Vienna this winter: We invite you to join us at next month's IKS Semantic Interaction Hackathon in Vienna taking place over 3-days February 24th-26th, 2011. The goal of the hackathon is to provide a framework, that enables CMS developers to exploit semantics throughout their content management systems based on interaction patterns. Why do we belief this is needed? Because to provide...

Sebastian Bergmann's Blog: Testing Traits

Sebastian Bergmann's Blog: Testing Traits
In some of the work he was doing Sebastian Bergmann came across an instance where he needed to both use a trait in his application and try to figure out how to test it with PHPUnit.To make sure that I did not break anything, I ran the test suite for the BankAccount sample application. The tests for classes that previously extended HashMap (Response, for instance) still passed. Of course, the tests for HashMap were now broken because trait cannot be instantiated. Suddenly I had to think about making...

How long is too long (for unit test method names)?

How long is too long (for unit test method names)?
As I ws working on some new development in our codebase this morning, I started updating some unit tests to match. I was looking through the code for one of them and came across a test name that was easily 50 characters long and it got me wondering - what was the popular opinion on naming conventions and commenting in unit tests. Obviously, there's some things (like annotations) that have to be in comments, but do you sacrifice clarity of a comment for a method name that you can basically read like a...

Rafael Dohms' Blog: Using theFacebook PHP-SDK to run FQL

Rafael Dohms' Blog: Using theFacebook PHP-SDK to run FQL
Rafael Dohms has a new post to his blog today looking at using the Facebook PHP-SDK to run FQL queries on the data for your applications.The new SDKs have not, as you can say, fallen far from the tree. While they are really great new and shiny, documentation on how to use them is still vague, missing or spread out in the internet in blogs like these, in posts from us users trying to share the information with other soon-to-be-suffering developers. So this is an example of this, i have been using these...

Harrie Verveer on Database Version Control

Harrie Verveer on Database Version Control
My good friend and former colleague, Harrie Verveer, recently posted a tutorial over on techPortal on Database Version Control. Click on in, I'll tell you why I think you should read it.


Smashing Magazine: Keeping Web Users Safe By Sanitizing Input Data

Smashing Magazine: Keeping Web Users Safe By Sanitizing Input Data
On the Smashing Magazine site today Phillip Tellis has a new article advocating a common thread in PHP application development (really, any application development) - sanitizing user input to help keep you and your application's user safe.In this article, I'm joined by my colleague Peter (evilops) Ellehauge in looking at input filtering in more depth while picking on a few real examples that we've seen around the web. As you'll see from the examples below, insufficient input validation can result in...

Stefan Koopmanschap's Blog: Barcodes and QR codes in PHP

Stefan Koopmanschap's Blog: Barcodes and QR codes in PHP
In a new post to his blog Stefan Koopmanschap looks at some of the tools he found to create barcodes and QR codes in PHP applications (including a bit of sample code for what he found).For a project I am working on right now, I needed to generate barcodes and QR codes. Looking around for solutions for the barcodes I quickly found Zend_Barcode (thanks to someone pointing me to it, by the way. I had not expected a barcode generator in Zend). For QR, it was slightly harder to find a good solution. A quick...

phpRiot.com: Shortening URLs for goo.gl with Google's URL Shortener API

phpRiot.com: Shortening URLs for goo.gl with Google's URL Shortener API
On phpRiot.com there's a new tutorial showing you how to use the Google URL shortener API in your PHP applications (via a curl call).In 2010 Google released its own URL shortener, which allows you to shorten URLs to use the goo.gl domain. In this article I will show you how to easily create your own short URLs using their new URL shortener API. Note: This API is still in labs, meaning the API is subject to change without notice.The tutorial steps you through the process of getting an API key for your...

NetTuts.com: Learn to Create Interactive Drill-Down Dashboards with PHP and FusionCharts

NetTuts.com: Learn to Create Interactive Drill-Down Dashboards with PHP and FusionCharts
New from NetTuts.com today there's a tutorial showing you how to use the FusionCharts tool to create interactive drill-down dashboards with a few simple PHP scripts.Presenting data in a graphical format always helps a lot in parsing the data efficiently. If the charts are interactive and linked, that's even better. Drill-down charts allow you to convert individual data plots (columns in column chart, pie slices in pie chart etc) of a chart into hotspots (or links). These items, when clicked, can open new...

ServerGrove Blog: PHP Conferences news roundup

ServerGrove Blog: PHP Conferences news roundup
If you've been feeling a bit out of the loop about the upcoming PHP conferences worldwide, you should take a look at this new summary post from the ServerGrove blog. It looks at the latest for five different conferences.Every a few months we publish a post regarding news about PHP conferences. In the last few years the number of conferences being held around the globe has increased dramatically. 2011 spawned a few days ago but we felt it was time to do one of those articles due to the number of...