PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 2401 to 2420 of 6889

Introducing ContractLib

Introducing ContractLib
ContractLib is a simple-to-use PHP component for easily enforcing programming contracts throughout your PHP components. These programming contracts can go a long way to helping you, and the users of your components, develop more robust code. ContractLib is loosely inspired by Microsoft Research's work on the Code Contracts Library for .NET. What Are Programming Contracts? Programming contracts are tests around functions and methods, and they are normally used: to catch any abad' data that has been passed...

PHP 5.3.9 Released!

PHP 5.3.9 Released!
The PHP development team would like to announce the immediate availability of PHP 5.3.9. 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 Enhancements and Fixes in PHP 5.3.9: Added max_input_vars directive to prevent attacks based on hash collisions. (CVE-2011-4885) Fixed bug #60150 (Integer overflow during the parsing of invalid exif header). (CVE-2011-4566) Key enhancements in PHP 5.3.9 include: Fixed...

DevHell Podcast: Episode 3: Beatings Will Continue Until Test Coverage Improves

DevHell Podcast: Episode 3: Beatings Will Continue Until Test Coverage Improves
The latest episode of the DevHell podcast has been posted - Episode 3, "Beatings Will Continue Until Test Coverage Improves".Fresh off our holiday break, we're back with our longest show yet. We talk about Chris' new book The Grumpy Programmer's Guide To Building Testable PHP Applications, including his experiences self-publishing with Leanpub. Chris also explains how he fears no precipitation on his excursions to the Codemash conference in Ohio. Then Ed talks about the thought process that lead to his...

Ariz Jacinto's Blog: Compiling PHP with MSSQL Server's Native ODBC Driver for Linux as a PDO Driver

Ariz Jacinto's Blog: Compiling PHP with MSSQL Server's Native ODBC Driver for Linux as a PDO Driver
Ariz Jacinto has written up a new post with the commands you'll need to get PHP up and runnign with MSSQL Server's native ODBC driver working on linux (accessible through PDO).Last month, MS announced the preview release of SQL Server ODBC Driver for Linux, a 64-bit binary driver for Red Hat Enterprise Linux 5. This is good news for companies using heterogenous platforms e.g. LAMP stack running a PHP application that connects to both MySQL and MSSQL Server. Meaning, these companies no longer have to use...

SaniSoft Blog: A pluggable compiler and virtual machine in PHP

SaniSoft Blog: A pluggable compiler and virtual machine in PHP
On the Sankuru blog today the next post in the series about creating a compiler in PHP has been posted. In this latest tutorial he shows how to set up a plugin architecture for the compiler that allows you to quickly and easily extend it beyond its base functionality.A plugin architecture allows multiple developers to work on the same application and let yet another person assemble their work later on. It allows the plugin developer to understand just his plugin API without having to understand all the...

PHPMaster.com: Introduction to PhpDoc

PHPMaster.com: Introduction to PhpDoc
On PHPMaster.com today there's a new post from Moshe Teutsch about working with docblock comments in PHP scripts and how to use the phpDocumentor tool to generate the documentation from them.If you've ever tried to read code written by someone other than yourself (who hasn't?), you know it can be a daunting task. [...] PhpDoc, short for PhpDocumentor, is a powerful tool that allows you to easily document your code via specially formatted comments. [...] By using PhpDoc, you can make it easy for others...

Nikita Popov's Blog: Disproving the Single Quotes Performance Myth

Nikita Popov's Blog: Disproving the Single Quotes Performance Myth
In this new post to his blog Nikita Popov aims to dispel the popular micro-optimization myth of using single quotes over double quotes for a performance boost.If there is one PHP related thing that I really hate, then it is definitely the Single Quotes Performance Myth. [...] Let's do a random Google search for "PHP single quotes performance": You will get many results telling you that single quotes are faster than double quotes and that string interpolation is much slower than string concatenation. Most...

The Danger of Hooks

The Danger of Hooks
I fell in love with Hooks in frameworks recently; the honeymoon period was tragically short. First, the love story: I ran into hooks rather simultaneously with two very different frameworks: Code Igniter and Lithium. In both cases I was using a rather nifty hook to handle ensuring that users were properly authenticated and authorized before accessing a page. I think we can all agree having to add some code to every single method is foolhardy: if (!isset($_SESSION['user_level']) OR...

PHPWomen.org: Book review: PHP Master

PHPWomen.org: Book review: PHP Master
On the PHPWomen blog today there's a new book review of SitePoint's latest major PHP publication - "PHP Master" (by Lorna Mitchell, Davey Shafik and Matthew Turland).At 357 pages (375 including index), this book provides a thorough grounding in the key topics todays PHP developer should strive to know, and know well. The back cover ambitiously states that the book is "guaranteed to take your PHP skills to the next level". Keep reading to find out whether or not I agree.She walks you through the contents...

Community News: Latest PECL Releases for 01.10.2012

Community News: Latest PECL Releases for 01.10.2012
Latest PECL Releases: mongo 1.2.7 lua 0.9.2 yaf 2.1.6 eio 0.4.0

PHP 5.3.9 Released!

PHP 5.3.9 Released!
The PHP development team would like to announce the immediate availability of PHP 5.3.9. 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 Enhancements and Fixes in PHP 5.3.9:Added max_input_vars directive to prevent attacks based on hash collisions. (CVE-2011-4885)Fixed bug #60150 (Integer overflow during the parsing of invalid exif header). (CVE-2011-4566)Key enhancements in PHP 5.3.9 include:Fixed bug #55475...

PHPMaster.com: ClamAV as a Validation Filter in Zend Framework

PHPMaster.com: ClamAV as a Validation Filter in Zend Framework
New on PHPMaster.com there's a tutorial showing you how to use ClamAV support to work as a validation filter in a Zend Framework application. ClamAV is an open source project that helps identify malicious threats like trojeans, viruses and malware.Ok, so you're pretty comfortable with using the Zend Framework, specifically the use of Forms. Along with that, you have a good working knowledge of how to combine a host of standard validators [...] but what do you do when a situation arises that's outside the...

Robert Basic's Blog: Creating a chat bot with PHP and Dbus

Robert Basic's Blog: Creating a chat bot with PHP and Dbus
Robert Basic has continued his series looking at using Dbus in PHP with this latest post to his blog - using the foundation he's created before to make a chat bot that will listen and respond to commands on a Jabber network.Now that we know how to use DBus to communicate with Pidgin from PHP and how to listen to DBus signals, it's time to put it all together by creating a simple chat bot! Nothing fancy, just a simple script that runs somewhere on some server and, by using a Pidgin account, can respond to...

Ralph Schindler's Blog: Compiling Gearman (or anything) for Zend Server CE on Snow Leopard

Ralph Schindler's Blog: Compiling Gearman (or anything) for Zend Server CE on Snow Leopard
Ralph Schindler has a new post to his blog today detailing the process you'll need to compile Gearman (or just about anything) on a Zend Server CE install on Snow Leopard.Zend Server CE for Mac (as of this writing), comes compiled as an i386 executable only. This includes the PHP binary, php library, and apache binaries that come shipped with ZSCE. While ZSCE works great out the box with all the provided extensions, you might find that you want some additional 3rd party PHP extensions compiled/linked...

Fabien Potencier's Blog: Create your own framework...on top of the Symfony2 Components (parts 3 & 4)

Fabien Potencier's Blog: Create your own framework...on top of the Symfony2 Components (parts 3 & 4)
Fabien Potencier has posted the third and fourth parts of his "Build a framework on top of Symfony2 components series to his blog: Part three adds on another page to the sample site, creating a front controller and changing the output to use "setContent()" instead of just echoing the data. In part four he refactors the code to be a bit more readable, adds in the Symfony2 Routing component to correctly get the requests to the right controller and an example of how to generate routes based on route...

7php.com: Interview With Chris Tankersley Founder Of Northwest Ohio PHP Users Group

7php.com: Interview With Chris Tankersley Founder Of Northwest Ohio PHP Users Group
7php.com has posted a new interview today with Chris Tankersley of the Northwest Ohio PHP Users group. The interview (made up of about 20 questions) talks about everything from what Chris thinks about PHP to some advice to aspiring developers to his framework preference.In this edition, I talked with Chris Tankersley a Zend PHP 5.3 Certified Engineer who has around 8-9 years programming experience in PHP. I'm impressed with his humbleness. He has not even mentioned his blog where he obviously rambles and...

PHP.net: PHP 5.4.0 RC5 released

PHP.net: PHP 5.4.0 RC5 released
The PHP development team has officially released PHP 5.4.0 RC5, the latest (and the second to last) release candidate for the next major version of the language.The PHP development team announces the 5th 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.Bugs fixed in this version include a few to the Core, SAPI/CLI SAPI, PHP-FPM support and improvements to the session...

Community News: Latest PEAR Releases for 01.09.2012

Community News: Latest PEAR Releases for 01.09.2012
Latest PEAR Releases: Net_IMAP 1.1.1 HTML_BBCodeParser 1.2.3 Tree 0.3.7 Tree 0.3.6 Image_QRCode 0.1.3 Net_Growl 2.5.0

Create your own framework... on top of the Symfony2 Components (part 4)

Create your own framework... on top of the Symfony2 Components (part 4)
Before we start with today's topic, let's refactor our current framework just a little to make templates even more readable: A // example.com/web/front.php A require_once __DIR__.'/../src/autoload.php'; A use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; A $request = Request::createFromGlobals(); A $map = array('/hello' = 'hello', '/bye' = 'bye',); A $path = $request-getPathInfo(); if (isset($map[$path])) { ob_start(); extract($request-query-all()); include...

Wordpress and disqus and post loops

Wordpress and disqus and post loops
First off - I don't have too much experience with disqus on Wordpress but when I looked at the code(-quality), disqus is one of the best plugins for Wordpress to date. I looked only very briefly, but I found it to be very clean, well documented and well architected. Good job, disqus! In case you happen to dive into Wordpress plugins in 2012, you will see that this is unfortunately not a given. Even (or maybe especially) the commercially available plugins to extend Wordpress are a source for PHP worst...

Latest PHP Tweets