PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 3261 to 3280 of 6889

Philip Norton's Blog: Desaturate Images With PHP

Philip Norton's Blog: Desaturate Images With PHP
In a new post to his blog Philip Norton shows how to desturate images with PHP using the already built-in GD libraries and the imagecopymergegray function.To desaturate an image means to remove all non-greyscale colours from it, essentially creating a black and white version. To do this you can use the function imagecopymergegray(), which is part of the GD image library. This function is a little difficult to figure out, but what is does is sample one image into another and optionally changing the amount...

CodeIgniter.com: Contribution Guide

CodeIgniter.com: Contribution Guide
Since the CodeIgniter project has put much more emphasis on open source and having others contribute back to the framework they love, they've had questions about the best places to get started and the steps to contribute back. They've posted this Contribution Guide to help answer some of those questions.CodeIgniter is a community driven project and accepts contributions of code and documentation from the community. These contributions are made in the form of Issues or Pull Requests on the EllisLab...

ZendCon Early Bird Registration ends soon!

ZendCon Early Bird Registration ends soon!
ZendCon is coming and the time to save on ticket prices is getting short! You know you want to go, so go ahead and get your ticket now. Click on inside, I'll share the link.

DZone.com: CakePHP - Web Test Cases with SimpleTest

DZone.com: CakePHP - Web Test Cases with SimpleTest
On DZone.com today there's a new post written up by Mike Bernat about making web test cases for CakePHP applications with SimpleTest.Most of the applications I work on have very straight-forward components and not a lot of complex functions/methods. I would only be testing whether or not they worked at all, rather than if they worked in a wide-array of situations. [...] For example, unit-testing a simple news list and detail page is probably overkill. Sure, you can test your classes by simple...

Sameer Borate's Blog: Microsoft Bing Translation PHP wrapper

Sameer Borate's Blog: Microsoft Bing Translation PHP wrapper
In a new post to his blog today Sameer Borate spotlights a translation wrapper for Bing that lets you easily use their API to translate text or determine what language the given text is in.Microsoft Language translation is an interesting service. Not only can you do language translation, you can also detect the language of a particular text. The given class provides a PHP wrapper which will help developers translate text from one language to another in a easy manner. The library also supports caching,...

Community News: ZendCon Early Bird Pricing Deadline Coming Soon

Community News: ZendCon Early Bird Pricing Deadline Coming Soon
The folks over at Zend would like to remind you that the deadline for Early Bird pricing on ZendCon conference tickets is coming soon - September 16th!The Zend PHP Conference (ZendCon) will be held October 17-20, 2011, at the Convention Center in Santa Clara, California. [...] The conference opening keynote will be given by Andi Gutmans, CEO and co-founder of Zend, who will be joined onstage by Michael Crandell, CEO and co-founder of RightScale.Other keynotes include ones from Jeff Barr (Amazon), Hugh...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
class.Validation.php CFile floStereoImg miXin Exception Handler Brainhandles Heatmap Exchange Server Read Calendar Download POP3/IMAP attachment

Making in-roads in your organization when you are 2000 miles away

Making in-roads in your organization when you are 2000 miles away
What's the best way to meet your co-workers? Break their app of course! I remember fondly how I got on the radar of much of the company I work for in one fell swoop. AOne morning I decided to get ambitious and try to move a bug of older bugs for a feature I was working on to be assigned to me, so I could process them individually and close them out. Great idea I figured, and definitely a good way to show the ROI on a project by saying aohey, this change clears out X number of bugs off the backloga. So...

Christian Schaefer's Blog: Beware of the timezone! Working with PHP DateTime & Doctrine for MongoDB

Christian Schaefer's Blog: Beware of the timezone! Working with PHP DateTime & Doctrine for MongoDB
Christian Schaefer has a recent post pointing out a common frustration among developers of applications with NoSQL backends, specifically with Doctrine, MongoDB and PHP DateTime objects - timezone conflicts.I really like Doctrines way of dealing with dates and times. Instead of passing timestamps around or strings with ISO date format it simply makes use of the PHP native type DateTime which provides all you really need to work with. PHPs interface to MongoDB however comes with its own MongoDate type...

CodeForest.net: Multilanguage support in Zend Framework

CodeForest.net: Multilanguage support in Zend Framework
In a new post over on CodeForest.net there's a guide from Zvonko Biskup about using the multi-language support in the Zend Framework, specifically implementing gettext support.We can not imagine a modern web application without a multi language support. I will show you how easy it is to setup usage of multiple languages in Zend Framework and how to setup some basic language routes (handy for SEO stuff). The Zend Framework offers many ways for you to store your translated strings. It could be an array, a...

Lukas Smith's Blog: Drupal using Symfony2 HttpFoundation is huge

Lukas Smith's Blog: Drupal using Symfony2 HttpFoundation is huge
As Lukas Smith mentions in his latest post, the Drupal project has made a switch to use the HttpFoundation component of the Symfony2 project as a integral part of their HTTP handling.[...] The fact that Drupal8 will use Symfony'2 HttpFoundation component is huge, because it will make integration a breeze. Basically Symfony2 converts a Request instance to a Response. So if both Symfony2 and Drupal8 use the same Request and Response classes it means that creating a sub-request and handing the response from...

Christian Weiske's Blog: phpfarm moved to SourceForge

Christian Weiske's Blog: phpfarm moved to SourceForge
Christian Weiske has a new post about a move the phpfarm tool has made over to SourceForge for its project page. phpfarm makes it simple to switch between multiple versions of PHP on the same server to make debugging and development a much simpler task (especially if you're not in a homogeneous environment).phpfarm, the tool that lets you install multiple PHP versions beside each other, finally got a proper project page on SourceForge. By moving from svn.php.net to SF, phpfarm got a nice git repository,...

NetTuts.com: Rapid Application Prototyping in PHP Using a Micro Framework

NetTuts.com: Rapid Application Prototyping in PHP Using a Micro Framework
On NetTuts.com today there's a new tutorial posted about using a microframework for prototyping an application you may not need a full stack framework to get running. Their examples are based on the Slim framework.Let's face it: we all have great ideas for a web application. Whether you write them down on paper or remember them using your eidetic memory, there comes a point when you want test whether or not your idea is really viable. In this tutorial, we'll use a micro framework, a templating language...

At the Helm of Joind.in

At the Helm of Joind.in
As of a few days ago, and following Chris' post, I am now the proud owner of an open source project. These things don't build themselves and whenever I look at the project as it stands, I'm blown away by what Chris has built over these years, and I can only thank him for that (he's not vanishing, just stepping away from the big-picture tasks). An open source project is no small task (as I'm sure many people reading can testify!), so if you have time to help us out, tell us what we're doing wrong (or...

Community News: ConFoo 2012 Call for Papers Extended

Community News: ConFoo 2012 Call for Papers Extended
The ConFoo conference has announced that their Call for Papers has been extended until September 16th for this years event happening February 29th through March 2nd.Many of you are just back from vacation. because of that, we decided to extend the call for papers until September 16. For speakers, that means more time to prepare abstracts. For everyone else, it's more time to read the proposals and cast your vote.You can find out more information about the ConFoo Call for Papers in their site. They're...

Community News: Latest PECL Releases for 09.06.2011

Community News: Latest PECL Releases for 09.06.2011
Latest PECL Releases: yaf 2.1.0 varnish 0.7 yaf 2.1.1 lua 0.9.0 yaf 2.1.2 varnish 0.8 ingres 2.2.3 imagick 3.1.0RC1 meta 0.0.1

Uniqueness in Fuel Models

Uniqueness in Fuel Models
As a part of broadening my horizons, I'm back to working with Fuel, a framework that has a familiar feel to some of the ones I've used in the past but has some extra aooomfa from new features and PHP 5.3-ness. I was working in my models the other day and had a need for uniqueness - I wanted to be sure that the object I was pushing into the database didn't match any other one. I went through the docs and didn't see anything about it and a glance through the source didn't turn up anything either. So, as an...

Amazium Blog: PHP in the Dark: Input/Output

Amazium Blog: PHP in the Dark: Input/Output
On the Amazium blog Jeroen Keppens has a recent post looking at some of tools available to you when needing to filter input and escape output in your applications. This post specifically covers filtering on command line applications.When you need data input in a web context, you send a GET/POST request to your script. On the command line, things work differently. In this blog post, we will talk obout input and output in php-cli.The post is broken up into a few different sections: Handling arguments File...

Lars Tesmer's Blog: PHPUnit: Better Syntax for Expecting Exceptions

Lars Tesmer's Blog: PHPUnit: Better Syntax for Expecting Exceptions
Lars Tesmer has an alternative to testing xceptions in PHPUnit that's a bit more flexible than just a docblock comment definition.My main issues with this way of expecting exceptions are:The expectation is pretty far away from the location you'd normally expect to find an assertion. Usually, an assertion can be found at the bottom of each test function, whereas with the current method PHPUnit uses, it's at the top of the test-function. Additionally, it's an annotation "buried" in a comment which is easy...

James Morris' Blog: A Symfony2 Console Command and the Foursquare API Venuehistory

James Morris' Blog: A Symfony2 Console Command and the Foursquare API Venuehistory
In a new post to his blog James Morris has shared a custom Symfony2 console command he's written to pull in Foursquare data for his testing locally.I've been playing with the Foursquare API recently, I'm attempting to get a new homepage built and want to display a map of where I hang out. I use Foursquare quite a bit so wanted to get the locations from their API then plot them on Google maps. There's a venuehistory endpoint that gives you a massive list of all the venues you've checked into with details...

Latest PHP Tweets