PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

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

More on scalar type hints in PHP trunk

More on scalar type hints in PHP trunk
Some time ago I wrote an article about the implementation of type hints for non-object types for PHP. Meanwhile many things happened and that implementation was replaced by a different one. Readers of my previous post might know that I have doubts about type hints in PHP. People who met me in person and asked me about it know for sure So what's the status now? - Well type hints, for non-object types, exist and they don't. There is a valid syntax which looks like this: function foo(int $i) { AAA echo...

Android C2DM with PHP and Zend Framework

Android C2DM with PHP and Zend Framework
So you've got a new fancy Android application and you want to be able to send push notifications to the phone. Either for synchronization purposes or for notifications. Since C2DM is fairly new and is currently in the labs it is rather difficult to find code that already handles sending out the notifications correctly. This article will go through sending a push notification (or message) through the Android C2DM server utilizing PHP in the fashion of a Zend Framework component. Overview Sending a message...

Claquete - DVDtheque manager

Claquete - DVDtheque manager
Claquete is a simple and intuitive application to manage a collection of DVDs, keeping all titles organized and cataloged.read more

Measuring & displaying Phing build times with buildhawk

Measuring & displaying Phing build times with buildhawk
Recently I installed a Ruby gem called buildhawk which allows to measure and display the build times of Rake driven builds. As I like the idea behind this tool a lot but mostly use Phing for build orchestration, it was time to explore the possibility to interconnect them both. In this blog post I'll show an implementation of an apposite Phing Logger gathering the buildhawk compatible build times via git note(s) and how to put the interplay between those two tools to work.Logging onAs mentioned above the...

Site News: Job Postings for the week of 11.14.2010

Site News: Job Postings for the week of 11.14.2010
Job postings for the past week:Job Posting: Shotfarm.com Seeks Director of Development (Chicago, IL) Job Posting: UJA-Federation of New York Seeks PHP Web Developer (New York, NY)

Blitz Agency Blog: REST Service Routing with PHP and Apache

Blitz Agency Blog: REST Service Routing with PHP and Apache
New on the Blitz Agency blog Adam Venturella walks you through his process of creating a simple REST service routing system with the PHP and Apache combination that has the same concepts as Sinatra routing.This is just a quickie. I had spent some time creating a routing system in PHP for services. The goal was to bypass .htaccess or a vhost configuration file. Basically, I wanted to map endpoints (HTTP methods + paths) to PHP methods. My goal at the time was something similar to Sinatra and/or MVC2...

Andrew Curioso's Blog: Error handeling stack in PHP 5.3+

Andrew Curioso's Blog: Error handeling stack in PHP 5.3+
Andrew Curioso has a post to his blog looking at error handling in PHP 5.3, specifically in creating a "stack" that can provide more than one error handler at a time.As you may know, set_error_handler can be used to set a custom error handler in PHP. It will catch any errors that happen in the script (with a few notable exceptions). If the function returns false then error handling resumes as normal; otherwise it is assumed that the custom handler took care of things. The problem is that you can only...

Design-Ireland.net: Logging Messages to Scribe from PHP

Design-Ireland.net: Logging Messages to Scribe from PHP
On the Design-Ireland.net site, there's a recent tutorial showing you how to log messages to Scribe from PHP. Scribe is Facebook's open sourced server for aggregating log data streamed in from multiple places.n a previous tutorial, I showed you how to install Facebook Scribe on a Linux server. In this tutorial we will continue to look at Scribe, but this time from the client perspective. Note that this tutorial assumes that you already have your Scribe and Thrift environment set up as outlined in the...

phpRiot.com: Using Callback Functions in PHP

phpRiot.com: Using Callback Functions in PHP
On phpRiot.com today there's a new tutorial posted by Quentin Zervaas showing you how to use the callback functions in PHP (with examples using call_user_func).A commonly used technique when programming is to use callbacks. A callback is a piece of code that is passed to a function that is later executed by that function. In this article I will show you how to define and call callbacks in PHP, as well as a practical example of how callbacks can be useful.He starts with a normal script flow that has to...

SitePoint PHP Blog: Top 10 MySQL Mistakes Made by PHP Developers

SitePoint PHP Blog: Top 10 MySQL Mistakes Made by PHP Developers
On the SitePoint PHP blog today there's a new post from Craig Buckler looking at his top ten MySQL mistakes he as a PHP developer has made over time (and suggests a few things so they can keep from making them again).database is a fundamental component for most web applications. If you're using PHP, you're probably using MySQL - an integral part of the LAMP stack. PHP is relatively easy and most new developers can write functional code within a few hours. However, building a solid, dependable database...

Site News: Popular Posts for the Week of 11.19.2010

Site News: Popular Posts for the Week of 11.19.2010
Popular posts from PHPDeveloper.org for the past week:Anna Filina's Blog: Developer Community: Where to Start? - Part 1 NETTUTS.com: A Beginner's Introduction to HTTP and REST ZendCasts.com: Unit Testing Action Helpers CodeIgniter.com: CodeIgniter 2.0 - Now with more Awesome Matthew Weier O'Phinney's Blog: Introducing the ZF2 Plugin Broker Josh Holmes' Blog: ASP.NET and PHP On IIS Together PHPBuilder.com: Use the PHP Filter Extension to Validate User Data Site News: Popular Posts for the Week of...

Lightning-fast WordPress with PHP-FPM and nginx

Lightning-fast WordPress with PHP-FPM and nginx
Managed servers are slow. They run old versions of PHP on ancient copies of Apache, and loathe the Digg effect (or any similar sudden influx of traffic). In this tutorial, I'll show how to build a server capable of withstanding a front-page Digg placement, step by step. This will mean your business stays online when it's most important-when everyone is looking. We'll go through the process of building a super-fast, bulletproof custom web server for WordPress. The technology stack we'll use is Ubuntu,...

New Features in PHP 5.3

New Features in PHP 5.3
At tonight's Burlington, Vermont PHP Users Group meeting I will be presenting on New Features in PHP 5.3. My talk will cover the primary new features including namespaces, late static binding, and closures. I'll also talk about the newly bundled extensions, improvements to existing extensions, and some of the new syntax that is available. New Features in PHP 5.3 View more presentations from Bradley Holt.

PHP Excel Extension 0.9

PHP Excel Extension 0.9
The 0.9 version of the Excel extension was released and is now available for download. This version was updated with support for LibXL 3.1.0, and introduces a number of new methods that can be used to manage repeating of printable rows, creation of named rages, and summary positioning. GitHub: http://github.com/iliaal/php_excel/ Source: http://github.com/downloads/iliaal/php_excel/php-excel-0.9.0.tar.bz2

Pressflow Wiki: Using Cassandra with PHP

Pressflow Wiki: Using Cassandra with PHP
On the Pressflow wiki there's a handy guide to getting PHP up and working with the Cassandra, the Apache Project's distributed database solution. (Note: Pressflow is Drupal-related, but this tutorial isn't specific to that.)The guide walks you through the steps you'll need to build the Thrift client (with a list of a few dependencies) and build the PHP extension using this install. With the module built, they help you change the php.ini to load the shared module and include the commands you'll need to...

PHPBuilder.com: 10 Productive PHP Tools for Testing and Debugging

PHPBuilder.com: 10 Productive PHP Tools for Testing and Debugging
On PHPBuilder.com there's a new post listing ten productive tools that you can use to debug your PHP applications both on the frontend and backend (and not all of them are PHP based).Despite the general notion that programming is a profession steeped in discipline and rigor, members of the programming community tend to be rather finicky folks who can be very particular when it comes to tooling. Thankfully PHP developers have a great deal to choose from when it comes to testing and debugging tools, and in...

NetTuts.com: Basecamp Style Subdomains With CodeIgniter

NetTuts.com: Basecamp Style Subdomains With CodeIgniter
On NetTuts.com today there's a new tutorial showing you how to use the CodeIgniter framework to create Basecamp-style subdomains in your application.CodeIgniter is a simple and lightweight PHP framework used to create powerful web applications. Today, we are going to do something nifty: we'll combine user names and subdomains to make for a more cohesive user experience. If you're a bit confused, this feature allows your users to access their accounts by typing in a custom url, which maps to their user...

Wade Arnold's Blog: Scala is easier than PHP

Wade Arnold's Blog: Scala is easier than PHP
According to this new post on his blog Wade Arnold thinks that Scala, the "general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way", is easier that PHP for handling some of the common web application related issues.I still believe that PHP is the best language for the web for the majority of programmers; it quite possibly has the best documentation and examples of any language like a DSL for the web! [...] So why is Scala easier?The...

JavaScript library Open Source Awards announced

JavaScript library Open Source Awards announced
I had the pleasure of participating in the Packt Publishing Open Source Awards for JavaScript Libraries recently, and they just announced the winner: jQuery. AI don't normally republish entire press releases, but here's the bulk of their release today. Packt Publishing is pleased to announce that jQuery has won the inaugural Open SourceAJavaScript Libraries Award category in the 2010 Open Source Awards. The Award is a newAcategory introduced to the Open Source Awards this year, featuring libraries of...

Top 10 MySQL Mistakes Made by PHP Developers

Top 10 MySQL Mistakes Made by PHP Developers
A database is a fundamental component for most web applications. If you're using PHP, you're probably using MySQL - an integral part of the LAMP stack. PHP is relatively easy and most new developers can write functional code within a few hours. However, building a solid, dependable database takes time and expertise. Here are 10 of the worst MySQL mistakes I've made (some apply to any language/database)a 1. Using MyISAM rather than InnoDB MySQL has a number of database engines but you're most likely to...