PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

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

Gonzalo Ayuso's Blog: Building a small microframework with PHP

Gonzalo Ayuso's Blog: Building a small microframework with PHP
In investigating microframeworks and some of the offerings out there Gonzalo Ayuso has done a little exploring of his own. He's worked up a basic microframework and shared it in a new post as a sort of academic exercise.Nowadays microframewors are very popular. Since Blake Mizerany created Sinatra (Ruby), we have a lot of Sinatra clones in PHP world. Probably the most famous (and a really good one) is Silex. But we also have several ones, such as Limonade, GluePHP and Slim. Those frameworks are...

Announcing the August 2011 Zend Framework Bug-Hunt

Announcing the August 2011 Zend Framework Bug-Hunt
For those who haven't put the recurring event in their calendar, the Zend Framework Monthly Bug-hunt is here again! This Thursday, Friday and Saturday (the 25th, 26th and 27th of August), we'll be hosting our monthly bug hunt. 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.

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 2

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 2
Michelangelo van Dam has posted the second part of his look at PHPUnit in his "Quality Assurance in PHP Projects" blog post series. This is a continuation from part one.I hope everyone enjoyed my first article on unit testing with phpunit where I started writing a few tests that would guide us building our little game of tictactoe. Today I'm going start with turning these tests into working code and adjusting our tests to have a clear separation of responsibility. Since we already know what the code...

Community News: Latest PECL Releases for 08.23.2011

Community News: Latest PECL Releases for 08.23.2011
Latest PECL Releases: Weakref 0.0.1 Weakref 0.1.0 oci8 1.4.6

Quality Assurance on PHP projects - PHPUnit part 2

Quality Assurance on PHP projects - PHPUnit part 2
A A AI hope everyone enjoyed my first article on unit testing with phpunit where I started writing a few tests that would guide us building our little game of tictactoe. Today I'm going start with turning these tests into working code and adjusting our tests to have a clear separation of responsibility. Since we already know what the code should produce, we only have to work out the details.Our tests tell us we have four classes:Tictactoe: the main class that is responsible for the game and how it should...

PHP 5.3.8 Released!

PHP 5.3.8 Released!
The PHP development team would like to announce the immediate availability of PHP 5.3.8. This release fixes two issues introduced in the PHP 5.3.7 release:Fixed bug #55439 (crypt() returns only the salt for MD5)Reverted a change in timeout handling restoring PHP 5.3.6 behavior, which caused mysqlnd SSL connections to hang (Bug #55283).All PHP users should note that the PHP 5.2 series is NOT supported anymore. All users are strongly encouraged to upgrade to PHP 5.3.8.For a full list of changes in PHP...

Jason Gilmore's Blog: How I Learned to Stop Worrying and Love Zend_Form

Jason Gilmore's Blog: How I Learned to Stop Worrying and Love Zend_Form
On his blog today Jason Gilmore has a quick post about solving one of his frustrations with Zend_Form (a part of the Zend Framework) - the default form decorators.It is a fantastically productive framework, one which I happen to use almost every single day. There was however one feature which absolutely drove me crazy. The Zend_Form component's uses the dd, dl, and dt elements as the default form markup decorators, meaning that even a simple contact form consisting of name, email, and message fields and...

PHP.net: 5.3.7 upgrade warning

PHP.net: 5.3.7 upgrade warning
In a quick note from the PHP.net site, they have a warning for those running PHP 5.3.7 (the most recent release) - there's a bug that's serious enough (with crypt) to where upgrades should probably wait until 5.3.8.Due to unfortunate issues with 5.3.7 (see bug#55439) users should wait with upgrading until 5.3.8 will be released (expected in few days).The issue causes the crypt() function to only return the (MD5-only) salt it was given instead of the correctly hashed string. If you need to replace this...

NetTuts.com: How to Use the Nettuts+ Phing Build Script

NetTuts.com: How to Use the Nettuts+ Phing Build Script
NetTuts.com has come up with a Phing (the automated build tool written in PHP) build script that designers can drop in as a part of their deployment process to compress, concatenate and Prefixize all of their stylesheets and scripts.We've created a build script for Phing that will give designers the ability to automatically compress, concatenate, and Prefixize all of their stylesheets and scripts - simply by typing five characters. I'll show you how to use it in this quick tip video.The post includes a...

CodeIgniter Blog: GitHub, Reactor, and v2.0.3

CodeIgniter Blog: GitHub, Reactor, and v2.0.3
The CodeIgniter blog has a a new update today with some changes that are happening in the project and it's community.If you are following CICON 2011 today, then you no doubt already heard from the Reactor team: CodeIgniter is now using Git for source control, and has moved its home to GitHub. Also, CodeIgniter "Core" is not longer being publicly maintained. CodeIgniter "Reactor" is CodeIgniter, so we are dropping that suffix. In short: CodeIgniter is the framework, and Reactor is our community driven...

DashExamples.com: Capture Content Security Policy (CSP) Violations in PHP

DashExamples.com: Capture Content Security Policy (CSP) Violations in PHP
From DashExamples.com there's a quick post on how you can set up your application to notify you on content security policy violations and store them back on he server side for later review.When somebody violates your CSP rules, there is a great feature that can setup for supporting browsers to send back the violations to your server to be saved, processed or whatever. This is a great feature because you can stop a possibly malicious piece of code from executing and learn which scripts may have...

Added Bytes Blog: If PHP Were British

Added Bytes Blog: If PHP Were British
On the Added Bytes blog there's a humorous post about what PHP would be like if it were British:When Rasmus Lerdorf first put PHP together, he - quite sensibly, despite his heritage - chose not to write it in Greenlandic or Danish. [...] He opted instead, being in Canada at the time, for the local tongue. No, not French - that bastard dialect of the Queen's English commonly referred to as "US English". PHP developers in Britain have been grumpy about this ever since. What was he thinking?Suggestions...

vfsStream 0.10.1 released

vfsStream 0.10.1 released
Today vfsStream 0.10.1 has been released, containing two bug fixes. The first was a problem with the vfsStream::create() functionality introduced with 0.10.0, where using numeric directories failed because of implicit type conversions (in PHP) and explicit type checks (in vfsStream). Thanks to Mathieu Kooiman for finding this issue and providing a patch. The other fix is a mix of a documentation and type hinting fix: now you can only use directories as root instance - before it was allowed to add files...

Community News: Latest PEAR Releases for 08.22.2011

Community News: Latest PEAR Releases for 08.22.2011
Latest PEAR Releases: Cache_Lite 1.7.12 Net_NNTP 1.5.0RC1

5.3.7 upgrade warning

5.3.7 upgrade warning
Due to unfortunate issues with 5.3.7 (see bug#55439) users should wait with upgrading until 5.3.8 will be released (expected in few days).

5.3.7 upgrade warning

5.3.7 upgrade warning
Due to unfortunate issues with 5.3.7 (see bug#55439) users should wait with upgrading until 5.3.8 will be released (expected in few days).

Working Software Blog: Escaping single and double quotes for use with XPath queries in PHP

Working Software Blog: Escaping single and double quotes for use with XPath queries in PHP
On the Working Software blog there's a new post showing a solution to a issue with escaping quotes in XPath queries that's not just an issue in PHP.I've been working with the Basecamp API to plugin our IRC bot that we use for time tracking and I'm astounded to learn that escaping single and/or double quotes for XPath queries in PHP does not have a well documented, best practices solution. In fact, it seems as though this is not peculiar to PHP. I took a look around and found this excellent article by...

PHP.net: PHP 5.3.7 Released!

PHP.net: PHP 5.3.7 Released!
As is mentioned on PHP.net, the latest release of the 5.3.x series of the language has been released - PHP 5.3.7.The PHP development team would like to announce the immediate availability of PHP 5.3.7. This release focuses on improving the stability of the PHP 5.3.x branch with over 90 bug fixes, some of which are security related.Security fixes in this release include updates to crypt_blowfish() and a buffer overflow in crypt(). Enhancements include the fixes for several bugs including ones related to...

NetTuts.com: How to Create an Alfred Extension

NetTuts.com: How to Create an Alfred Extension
On NetTuts.com today there's a new screencast posted showing you how to create an Alfred extension with PHP (OS X only, obviously). Alfred is "a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. Whether it's maps, Amazon, eBay, Wikipedia, you can feed your web addiction quicker than ever before".The tutorial walks you through the process of creating the extension (requires v0.99). His example extension is a shell script that pulls contents...

Dzone.com: Object Calisthenics

Dzone.com: Object Calisthenics
Giorgio Sironi has a new post on DZone.com today with a look at what he calls "object calisthenics", a sort of "workout exercise for you to do to flex your object-oriented programming skills.Calisthenics is a Greek-derived term for exercises, in the gym sense. I have object calisthenics, exercises for object-oriented programming, around for a long time and saw them as fascinating, but never got the time to try.The challenge he lays out includes rules relating to indentation levels (really complexity...