PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 21 to 40 of 182

PHP Includes file generator

PHP Includes file generator
While profiling SabreDAV, I noticed a few times more than half of the request time was spent in the autoloader. So instead of autoloading, now I prefer to unconditionally include every file for each package (there are 5 packages). For a while I manually maintained these files manually, but a while back I automated this process.This is how you run it:phpincludes . includes.phpThis will generate a file such as:A// Begin includesinclude __DIR__ . '/Interface1.php';include __DIR__ . '/Class1.php';include...

PHPMaster.com: Introduction to Git, Part 1

PHPMaster.com: Introduction to Git, Part 1
If you haven't gotten a chance to try out git for your version control system, now's the perfect time. PHPMaster has an introduction to using git for a simple PHP project. It introduces you to some of the basics and gets you up to speed quickly.Some of the more commonly used version control systems that you have likely heard about are CVS and Subversion. This tutorial will take a "forget everything you know about CVS or Subversion" approach. As someone who has used all three of these systems in the...

Brian Swan's Blog: The SQL Server ODBC Driver for Linux is Available!

Brian Swan's Blog: The SQL Server ODBC Driver for Linux is Available!
As Brian Swan has mentioned in his latest blog post, the ODBC database driver for SQL Server on Linux has been released. This is a huge step forward for directly connecting linux-based systems (and programming languages) to this popular Microsoft product.The first beta release of the SQL Server ODBC Driver for Linux is available for download! As announced in October, the "Multiplatform Team" (a.k.a. the "MPlat Team") has released a preview version of a driver that will provide first-class access to SQL...

Community News: Latest PECL Releases for 11.29.2011

Community News: Latest PECL Releases for 11.29.2011
Latest PECL Releases: expect 0.3.1 CUBRID 8.3.1.0008 CUBRID 8.4.0.0005 CUBRID 8.4.1.0001 lua 0.9.1 hidef 0.1.10 solr 1.0.2

We just launched Techademy!

We just launched Techademy!
As I've found out after starting my own company, training is a hot topic. On the one hand, everyone wants and needs training, but on the other hand, training seems to be really expensive. And while in-depth expert training has a good value (and I deliver those on a regular basis), I felt there should be a way for web developers to stay up-to-date on recent developments in a quick and not too expensive way. Talking with friend, old colleague and soon-to-be freelancer Joshua Thijssen I found someone who...

PHP 5.4 RC2 released

PHP 5.4 RC2 released
The PHP development team is proud to announce the second release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION!. This is the second release candidate. The release candidate phase is intended as a period of bug fixing prior to the stable release. No new features should be included before the final version of PHP 5.4.0....

Collaboration is scary

Collaboration is scary
Collaboration usually requires communication and compromises. The pay off in the long run should come in the form of saved time, higher quality and a healthier ecosystem. But how does this all work out in practical terms? I remember a university course labeled "code is law". Talking about the hard facts that code defines. The topic there was mostly about stuff like how the default settings of apache define the reality of what gets logged and not whatever the governments privacy laws define. At the same...

Karsten Deubert's Blog: Zend_MVC, Controller Plugins and Annotations

Karsten Deubert's Blog: Zend_MVC, Controller Plugins and Annotations
Karsten Deubert has a recent post to his blog looking at annotations in Zend Framework applications to enhance functionality already in the framework.Recently I had the idea to influence Controller Actions with annotations but discarded it with thoughts like "In PHP I will have to use reflection and some black magic to get this working which will have insane performance hits for my applications"... until I set everything up to see that it costs just 1-2ms in average per request without any form of...

Richard Miller's Blog: Symfony2: Integrating elasticsearch

Richard Miller's Blog: Symfony2: Integrating elasticsearch
Richard Miller has been posting a series of articles to his blog recently that look at integrating the ElasticSearch tool with a Symfony2-based application.Elasticsearch is built on top of Lucene and indexes data as JSON documents in a similar way to the way MongoDB stores data. This means as with Mongo that it is schemaless and creates fields on the fly. It is queried over HTTP using queries which are themselves defined in JSON. [...] What I want to do is look at how you can avoid having to deal with...

Community News: South Florida PHP User Group Dec 2011 Meetup - PHP in 2011 (with Rasmus Lerdorf)

Community News: South Florida PHP User Group Dec 2011 Meetup - PHP in 2011 (with Rasmus Lerdorf)
The South Florida PHP User Group has announced their December 2011 meeting - happening on the 14th at 7pm - with a look at how far PHP has come in 2011 and some of the things coming up. Rasmus Lerdorf will be presenting.For our "FREE" (yes, all of our meetups are free) December meetup we have a special guest, Rasmus Lerdorf, visiting to talk about "PHP in 2011". Rasmus Lerdorf, the inventor of PHP, will talk to us and give his perspective on the prospects of his brainchild. "PHP in 2011": A look at the...

Chris Hartjes' Blog: Scope Is Not a Mouthwash

Chris Hartjes' Blog: Scope Is Not a Mouthwash
Chris Hartjes has a reminder posted to his blog today in the form of this recent post that "scope is not a mouthwash" - personal experience from his recent development where he forgot about something as simple as scoping (and it caused him all sorts of headaches).For [a chapter in my book on dependency injection] I am using Pimple, an incredibly small but effective dependency injection container. Easy to use, simple and effective documentation, just what I was looking for. I also noticed that Pimple...

Gonzalo Ayuso's Blog: Playing with the new PHP5.4 features

Gonzalo Ayuso's Blog: Playing with the new PHP5.4 features
Gonzalo Ayuso has a new post to his blog today showing some of the experimentation he's done with PHP 5.4 features like the short array syntax, calling methods through arrays and traits.PHP5.4 it's close and it's time to start playing with the new cool features. I've created a new Virtual Machine to play with the new features available within PHP5.4. I wrote a post with the most exciting features (at least for me) when I saw the feature list in the alpha version. Now the Release Candidate is with us, so...

Optimize MySQL tables for better performance

Optimize MySQL tables for better performance
If you run a web application like WordPress you should know that a many database transactions creating an overhead on your database tables. This overhead will slow down the database server because more memory need to used than without overhead. While this PHP tutorial is for the beginning webmaster is the PHP code (or the [...]

Volker Dusch's Blog: Textual code coverage information for PHPUnit

Volker Dusch's Blog: Textual code coverage information for PHPUnit
In a new post to his blog Volker Dusch points out a new feature in a recent release of PHPUnit, the popular unit testing framework for PHP - textual code coverage details.Three weeks ago PHPUnit 3.6 was released and it has a little new feature you might have missed until now. PHPUnit can now show you code coverage information on the command line.Options for the report output include: colorizing, writing the output to a file, including a project summary, namespace separation and package (using the...

PHPMaster.com: Localizing PHP Applications "The Right Way", Part 5

PHPMaster.com: Localizing PHP Applications "The Right Way", Part 5
PHPMaster.com has posted the fifth part of their "Localizing PHP Applications 'The Right Way'" series, this time with a focus on extracting data from the .pot template files to define in your PHP. (This is the final part of the series.)In Part 4 you learned how to use gettext for one of the most complex aspects of localization a developer can face, plural forms. In this, the final part of the five-part series, I'll teach you how you to automate part of the localization process by extracting msgids and...

AjaxRay.com: The first Kohana book : Kohana 3.0 Beginner's Guide

AjaxRay.com: The first Kohana book : Kohana 3.0 Beginner's Guide
On the AjaxRay site today there's a new review of an introductory book from Packt Publishing about Kohana 3.0 (Beginner's Guide).When framework newbies asks me with which [framework] he should start, need to think twice before suggesting Kohana. The main reason is, it's documentation was not as rich as Codeigniter or Zend Framework. And there was no book. BTW, Kohana unofficial wiki is a BIG try to help in this issue. Besides, recently Packt has published the first book on Kohana "Kohana 3.0 Beginner's...

NetTuts.com: Easy Package Management for CodeIgniter with Sparks

NetTuts.com: Easy Package Management for CodeIgniter with Sparks
On NetTuts.com today there's a new tutorial showing off a package management system for the CodeIgniter framework, Sparks, that makes installing and using packages similar to Ruby's gems.Sparks is a new package-management system for CodeIgniter that extends the core with support for gem-like sparks. This tutorial interweaves an entry-level overview of the architecture and usage of the sparks system with the creation of dovecote-a simple spark for managing RSS data.The tutorial introduces you to the...

Site News: Popular Posts for the Week of 11.25.2011

Site News: Popular Posts for the Week of 11.25.2011
Popular posts from PHPDeveloper.org for the past week:DevShed: Building an ORM in PHP ZetaCode.com: PHP GTK tutorial Johannes Schlüter's Blog: High Performance PHP Session Storage on Scale DevShed: Building an ORM in PHP: Domain Modeling Henrik Bjørnskov's Blog: Travis & Composer sitting in a tree K-I-S-S-I-N-G Lorna Mitchell's Blog: POSTing JSON Data With PHP cURL DZone.com: Creating a virtual server with Vagrant: a practical walkthrough Ibuildings techPortal: DPC Radio: Distributed Couch Apps -...

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:Henri Bergius' Blog: PHP: Finally getting an ecosystem? Mike Willbanks' Blog: Android C2DM with PHP and Zend Framework Ruslan Yakushev's Blog: How to install PHP PEAR and phploc on Windows Label Media Blog: Design Patterns in PHP - Factory method SimasToleikis' Blog: New to PHP 5.4: Traits Mashable.com: 8 Experts Break Down the Pros and Cons of Coding With PHP Devis Lucato's Blog: Anonymous objects in PHP - Composition, Mocks, Refactoring...

Engine Yard: The Future of PHP: PEAR and Pyrus Webcast Recording

Engine Yard: The Future of PHP: PEAR and Pyrus Webcast Recording
If you missed out on the Future of PEAR/Pyrus webcast event put on by Engine Yard, you're in luck - they've posted a recording of the event.In this panel discussion, we tackle topics including the direction PEAR and Pyrus will be going in the next few years, obstacles that may be on the horizon, and more.PEAR is the package library of standardized packages for a variety of common development tasks. Pyrus is a new package manager to make installing and maintaining PEAR packages simpler. Engine Yard's next...