PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 181 to 200 of 246

Hasan Otuome's Blog: PHP Documentation Tips

Hasan Otuome's Blog: PHP Documentation Tips
In a quick post to his blog Hasan Otuome points out an issue he had when running phpDocumentor on his application's codebase resulting in a broken end result.Recently had to run PhpDocumentor on a project only to be faced with broken documentation after bringing all class files into compliance with proper comments. At first I thought I was missing a config flag for the command-line but, it turns out that the PhpDocumentor-1.4.3 ZIP download contains broken template elements.He provides two screenshots...

Brian Swan's Blog: Accessing Windows Azure Blob Storage from PHP

Brian Swan's Blog: Accessing Windows Azure Blob Storage from PHP
Brian Swan has posted a new tutorial to his blog showing you how to connect your PHP application with the Azure service and use the blob storage it offers.In this post I will do something similar [to this previous post] for accessing Windows Azure Blob Storage from PHP. This won't be a deep-dive into Windows Azure Blob Storage, but it will be a "how to get started with the Microsoft_WindowsAzure_Storage_Blob class (which is part of the Windows Azure SDK for PHP)"-type post.He talks about how these blob...

Guidelines for generating XML

Guidelines for generating XML
Over the last little while I've come across quite a few XML feed generators written in PHP, with varying degrees of 'correctness'. Even though generating XML should be very simple, there's still quite a bit of pitfalls I feel every PHP or (insert your language)-developer should know about.1. You are better off using an XML libraryThis is the first and foremost rule. Most people end up generating their xml using simple string concatenation, while there are many dedicated tools out there that really help...

Kevin Schroder's Blog: PHP 5.3 Certification Beta Testers Needed

Kevin Schroder's Blog: PHP 5.3 Certification Beta Testers Needed
Kevin Schroder has posted a new announcement to his blog today about Zend's need for "beta testers" for the latest version of their PHP Certification exam (the 5.3 version).Zend has recently teamed up with several of the top people in the PHP community to offer the PHP 5.3 Certification. It will be coming out in a few months, but before we can do that we need beta testers. That means YOU! If you want to participate all you need to do is fill out a quick qualification survey. These are the questions you...

Andrey Hristov's Blog: Replacing mysqli's Connection, Result and Statement classes

Andrey Hristov's Blog: Replacing mysqli's Connection, Result and Statement classes
On his blog today Andrey Hristov has a quick post that talks about two methods to extend the functionality that the mysqli extension offers in PHP with your own custom code.Have you ever though about extending mysqli's classes. It's pretty simple to subclass the connection class mysqli. However, subclassing mysqli_result and mysqli_stmt is not so obvious, actually I though that it's even not possible. However, never say never! After discussing mysqli's OO interface for an hour yesterday [...] I found out...

php|architect: Never Use $_GET Again

php|architect: Never Use $_GET Again
In this new post to the php|architect blog Matt Butcher offers a security tip for all PHP developers out there - never use $_GET again.You don't need to use $_GET or $_POST anymore. In fact, you probably shouldn't use $_GET and $_POST anymore. Since PHP 5.2, there is a new and better way to safely retrieve user-submitted data. [...] Rather than accessing the $_GET and $_POST superglobals directly, you can make use of PHP functions like filter_input() and filter_input_array().He gives a code example of it...

NETTUTS.com: Object-Oriented PHP for Beginners

NETTUTS.com: Object-Oriented PHP for Beginners
If you're just making the move from procedural PHP development into the next level - object oriented programming - and are having a bit of trouble getting the hang of it, you might want to read this new tutorial from NETTUS.com introducing the topic.For many PHP programmers, object-oriented programming is a frightening concept, full of complicated syntax and other roadblocks. As detailed in my book, Pro PHP and jQuery, you'll learn the concepts behind object-oriented programming (OOP), a style of coding...

Universal Constructor Sighting aoIn The Wilda

Universal Constructor Sighting aoIn The Wilda
For those of you who don't know, aouniversal constructora is the name I give to PHP constructors that always and only take a single parameter. The parameter is an array of key-value pairs, which is then merged with a set of default keys and values. Finally, the array is unmarshalled, usually into object properties. One [...]

Site News: Popular Posts for the Week of 07.09.2010

Site News: Popular Posts for the Week of 07.09.2010
Popular posts from PHPDeveloper.org for the past week:Project: MakeGood - A test runner for doing Test Driven Development with Eclipse PDT dynaTrace Blog: Top 10 Performance Problems taken from Zappos, Monster, Thomson and Co Richard Thomas' Blog: Solar Framework manual is coming along Matthew Weier O'Phinney's Blog: Creating Zend_Tool Providers Stoimen Popov's Blog: preg_match Give Names to the Matches Site News: Popular Posts for the Week of 07.02.2010 Site News: Job Postings for the week of...

Speaking at FrOSCon

Speaking at FrOSCon
In August I'll be attending FrOSCon in Germany for the first time, and speaking there. It's a mixed technology conference, with rooms set aside for separate scheduling for various projects and technologies. I'll be speaking in the PHP room, delivering "Working With Web Services", a talk which covers how to consume all sorts of types of web service from PHP. I'm excited about that and even more excited to hear that I'll also be speaking in the main track, where I'll deliver "Open Source Your Career" -...

html Sanitisation Benchmarking With Wibble (ZF Proposal)

html Sanitisation Benchmarking With Wibble (ZF Proposal)
In January of this year, I had the idea of writing a html Sanitiser for PHP. Why not? All PHP has is htmlPurifier and a bunch of random solutions that are about as secure as the average wooden gate. If you think that's harsh, wait for my next blog post . htmlPurifier is the only secure by default html Sanitiser in PHP. Fact. But the darn thing is gigantic and slow. That has never stopped me using it (for years), even if I had to do a little funky engineering so I could minimise the performance hit. Other...

Test.ical.ly Blog: Wrapping symfonys functional tests in a PHPUnit test case

Test.ical.ly Blog: Wrapping symfonys functional tests in a PHPUnit test case
In a new post to the test.ical.ly blog Christian looks at how to wrap Symfony functional tests inside of a PHPUnit test case to unify them with your already-existing unit tests.Yesterday I wrote a lot of functional tests for a symfony plugin that provides and XML web service interface. Using symfonys functional testing classes this is actually quite easy to do. But wouldn't it be cool if you could integrate these tests into your continuous integration service just like PHPUnit tests? Wouldn't it be cool...

Project: MongoSession - A PHP MongoDB Session Handler

Project: MongoSession - A PHP MongoDB Session Handler
Corey Ballou has posted a MongoDB-based session handler to his site with a new update back on July 1st.MongoSession is a PHP implementation of a MongoDB session wrapper. This class was built as a drop-in for easily switching to handling sessions using Mongo. It's a great replacement to memcache(d) for VPS servers where you risk memory being reshuffled in the pool and taking performance hits.You can grab the latest version of the source from the github repository for the project or just copy and paste the...

Ibuildings techPortal: The Test Driven Challenge - Winners and Results

Ibuildings techPortal: The Test Driven Challenge - Winners and Results
On the Ibuildings techPortal site today Ivo Jansch has announced the winners of their latest programming contest (a class to satisfy a given test case, a sort of TDD challenge).n May and June we ran another one of our PHP coding contest. We love to play with PHP and offer people a chance to show off their coding skills in exchange for prizes! This time the contest revolved around creating a class that satisfies a given unit test case. The test case contained tests for 7 mathematical operations. The...

SitePoint: Silverlight and PHP, Part 2: Creating a Simple Twitter Client

SitePoint: Silverlight and PHP, Part 2: Creating a Simple Twitter Client
SitePoint has posted the second part of a series from Jordan Knight about creating a Twitter client by combining Silverlight and PHP (part one is here).The application that we'll build in this article will allow you to enter a Twitter search term, and display the tweets received in Silverlight. Unfortunately, this process isn't as simple as loading a URL from Silverlight, because of something known as cross-domain access policy.He talks some about the problem that this cross-domain access can cause for...

PHPBuilder.com: My Top 10 Most Useful Joomla Components

PHPBuilder.com: My Top 10 Most Useful Joomla Components
On PHPBuilder.com today Voja Janjic has written up a "top ten" list of the most useful Joomla components you can use for your Joomla-based site.Joomla, the PHP-based, open-source content management system (CMS), has grown in popularity thanks to its wealth of templates, modules and components, as well as its ease of installation. In this article I present the most useful Joomla components I have found in my Web development. They cover everything from e-commerce to internationalization to SEOComponents...

NETTUTS.com: A Beginner's Guide to Design Patterns

NETTUTS.com: A Beginner's Guide to Design Patterns
On NETTUTS.com today there's a new tutorial that introduces a bit more advanced concept in the development process - design patterns.Design patterns are optimized, reusable solutions to the programming problems that we encounter every day. A design pattern is not a class or a library that we can simply plug into our system; it's much more than that. It is a template that has to be implemented in the correct situation. It's not language-specific either. A good design pattern should be implementable in...

Non Hover?

Non Hover?
Trent Walton: Hover states are everywhere.A I don't think I've ever written a stylesheet or designed a site without putting a significant amount of thought into how they should behave. As users, we've been conditioned to rely on hovers states to trigger changes in link color, reveal action items, and navigate through multiple tiers of a drop-down menu. Fascinating how mobile devices are forcing designers to rethink their decisions and rethink aobest practices.a One thing I dislike is the current trend of...

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:Brandon Savage's Blog: Installing PHP 5.3 On Ubuntu NETTUTS.com: Kohana: The Swift PHP Framework SitePoint.com: How To Handle File Uploads With PHP Jeremy Zawodny's Blog: Database Abstraction Layers Must Die! SitePoint PHP Blog: How to Install PHP 5.3 on Windows Till's Blog: Nginx+PHP+FastCGI: Testing your web application with bleeding edge PHP Rob Allen's Blog: Bootstrapping modules in ZF 1.8 Benjamin Eberlei's Blog: Using Symfony...

Replacing mysqli's Connection, Result and Statement classes

Replacing mysqli's Connection, Result and Statement classes
Have you ever though about extending mysqli's classes. It's pretty simple to subclass the connection class mysqli. However, subclassing mysqli_result and mysqli_stmt is not so obvious, actually I though that it's even not possible. However, never say never! After discussing mysqli's OO interface for an hour yesterday, with Johannes and Ulf, and breaking two tests of mysqli - 062.phpt and 063.phpt, because I tried to final-ize mysqli_result and mysqli_stmt, as well as make their constructors private, I...