PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 5081 to 5100 of 6889

phpRiot.com: Shortening URLs for goo.gl with Google's URL Shortener API

phpRiot.com: Shortening URLs for goo.gl with Google's URL Shortener API
On phpRiot.com there's a new tutorial showing you how to use the Google URL shortener API in your PHP applications (via a curl call).In 2010 Google released its own URL shortener, which allows you to shorten URLs to use the goo.gl domain. In this article I will show you how to easily create your own short URLs using their new URL shortener API. Note: This API is still in labs, meaning the API is subject to change without notice.The tutorial steps you through the process of getting an API key for your...

NetTuts.com: Learn to Create Interactive Drill-Down Dashboards with PHP and FusionCharts

NetTuts.com: Learn to Create Interactive Drill-Down Dashboards with PHP and FusionCharts
New from NetTuts.com today there's a tutorial showing you how to use the FusionCharts tool to create interactive drill-down dashboards with a few simple PHP scripts.Presenting data in a graphical format always helps a lot in parsing the data efficiently. If the charts are interactive and linked, that's even better. Drill-down charts allow you to convert individual data plots (columns in column chart, pie slices in pie chart etc) of a chart into hotspots (or links). These items, when clicked, can open new...

ServerGrove Blog: PHP Conferences news roundup

ServerGrove Blog: PHP Conferences news roundup
If you've been feeling a bit out of the loop about the upcoming PHP conferences worldwide, you should take a look at this new summary post from the ServerGrove blog. It looks at the latest for five different conferences.Every a few months we publish a post regarding news about PHP conferences. In the last few years the number of conferences being held around the globe has increased dramatically. 2011 spawned a few days ago but we felt it was time to do one of those articles due to the number of...

Using the Facebook PHP-SDK to run FQL

Using the Facebook PHP-SDK to run FQL
As of Facebook's migration to the new Graph API and its OAuth 2.0 protocols, I can say that their Developer documentation has become a confusing, misleading and generally unstrung pile of semi-deprecated articles, and I'm being optimistic in doing so. Problem is lots of old articles are still in there pointing to old practices and recommendations and most of these do not come with disclaimers pointing to new recommendations, and in some extremes old soon-to-be-deprecated methods do not even have...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Func MySQL Edit Table Code Graph IP 2 Country IP2C Last.fm Mood ontoProdukt PHP DB Object Txt Xtrator MRU manager Validate form elements QoS Bandwidth Throttler Zebra Pagination

Barcodes and QR codes in PHP

Barcodes and QR codes in PHP
For a project I am working on right now, I needed to generate barcodes and QR codes. Looking around for solutions for the barcodes I quickly found Zend_Barcode (thanks to someone pointing me to it, by the way. I had not expected a barcode generator in Zend). For QR, it was slightly harder to find a good solution. A quick question on Twitter helped a lot. In the end, it boiled down to two options: PHP QR Code and using the Google Chart API.

Testing Traits

Testing Traits
The other day I was using the BankAccount sample application during a PHPUnit training. When I showed this code ...classAResponseAextendsAHashMap{AAAA//A...}?... one of the developers said: "That is wrong! A Response is not a HashMap. You should use delegation instead." And, of course, he was right. I replied with "Actually, what we want to do here (once we have PHP 5.4) is to use traits."I went ahead and refactored the...

PHP Training in MontrAal

PHP Training in MontrAal
Together with my friends and partners from thePHP.cc, Arne Blankerts and Stefan Priebsch, I will be giving an "Advanced PHP Development" training in MontrAal in March.Web applications need to be changed and adapted frequently and quickly. Their environment, for example the size and the behaviour of the user base, is constantly changing. What was sufficient yesterday, can be insufficient today. How easy is it to adapt your code to changing requirements? Is the code hard to read and understand? Do you...

Speaking at SXSW Interactive 2011

Speaking at SXSW Interactive 2011
I will be speaking at SXSW Interactive 2011. My talk will be a solo presentation on Zend Framework 2.0 and PHP 5.3 Web Applications. A big thanks to everyone who voted for my talk in the panel picker! I'll be giving a preview of this talk at DC PHP on February 9th and at New York PHP on February 22nd. If you have specific questions you'd like to see addressed then please let me know!

What Is Data Science?

What Is Data Science?
What Is Data Science?: Analysis: The future belongs to the companies and people that turn data into products.

Zend Developer Zone: ZendCon 2010 Podcast - A New Approach to Object Persistence in PHP

Zend Developer Zone: ZendCon 2010 Podcast - A New Approach to Object Persistence in PHP
On the Zend Developer Zone there's a new post sharing the latest episode of their ZendCon 2010 sessions series - a talk from Stefan Priebsch about object persistence in PHP.The object-relational impedance mismatch makes persisting PHP objects in a relational database a daunting task. How about these new schemaless NoSQL databases? We will have a look at the problems involved with persisting PHP objects, and introduce design patterns that help solving these problems. Putting the patterns to good use, we...

Ibuildings techPortal: Database Version Control

Ibuildings techPortal: Database Version Control
On the Ibuildings techPortal today Harrie Verveer has a new post looking at database version control - one of the more difficult topics for development groups - and some of the technology that can be used to help make it a bit simpler.Database version control is something that most developers have to deal with regularly, yet only a few have actually thought about what solution might be best for them. Most people have a solution that sort of works for them, but when you ask them about the subject they are...

My gripe with Prototype

My gripe with Prototype
Many of you might already know this, but I wanted to point out why I think using the Prototype Javascript library is a bad idea. The biggest problem is actually highlighted in it's name: it changes many of the prototypes of core javascript types. You might have realized this before, when you tried to 'for(in in arr)' and came across many of the extra functions prototype added. (and you should have realized at this point this wasn't the proper way to loop through an array anyway.).This is a big difference...

Ryan Mauger's Blog: Zend Framework tips on Evernote

Ryan Mauger's Blog: Zend Framework tips on Evernote
In some of his development with the Zend Framework Ryan Mauger has gathered some helpful tips and tricks. His dropped these into an Evernote notebook and shared it for others to use.I have started compiling a notebook of tips and answers to commonly asked questions to Zend Framework questions, and common patterns of Zend Framework application design. I'm kicking it off with two notes, one for modules setup, and the other for how to route your requests so that you can divide your controllers up further...

Matthew Weier O'Phinney's Blog: Aspects, Filters, and Signals, Oh, My!

Matthew Weier O'Phinney's Blog: Aspects, Filters, and Signals, Oh, My!
Matthew Weier O'Phinney has a new in-depth post to his blog that looks at a few features of Aspect Oriented Programming and what technologies are out there that help support it right now. He mainly focuses on the features of the Lithium framework because of its filtering techniques.Last month, during PHP Advent, gwoo wrote an interesting post on Aspect-Oriented Design, or Aspect Oriented Programming (AOP) as it is more commonly known. The article got me to thinking, and revisiting what I know about AOP,...

Lorna Mitchell's Blog: Gthub API: Issues List

Lorna Mitchell's Blog: Gthub API: Issues List
Lorna Mitchell has a handy tip for those PHPers out there that use Github and want to pull off the issues from their project's Issues List quickly and easily - use their API (super simple).I looked around for some export functionality for github but I got a lot of posts complaining it wasn't there. Since I hate applications that take your data and refuse to let you remove it, I was disappointed by this news but further inspection showed that although there might be no "export from github" button, there's...

Kevin Schroeder's Blog: Subnet validation with Zend Framework

Kevin Schroeder's Blog: Subnet validation with Zend Framework
Kevin Schroeder has a new post to his blog today looking at a method for validating subnets with the Zend Framework using the Zend_Validate component.I saw on a StackOverflow posting, someone was asking to see how you could use a Zend Framework validator to tell if an IP address was between two addresses. The individual was trying to use Zend_Validate_Between to do the checking. [...] So, assuming that the individual was actually asking about subnet validation, and seeing that I couldn't find a subnet...

Community News: Latest PECL Releases for 01.11.2011

Community News: Latest PECL Releases for 01.11.2011
Latest PECL Releases: CUBRID 8.3.1.0001 mongo 1.1.1 mongo 1.1.2 mongo 1.1.3 expect 0.2.8 CUBRID 8.3.1.0002

SaAa StamenkoviA: Building CLI Apps With Symfony Console Component

SaAa StamenkoviA: Building CLI Apps With Symfony Console Component
SaAa StamenkoviA recently posted Building CLI Apps With Symfony Console Component, article which explains how to develop well structured and testable CLI application using Symfony Console Component.

Facebook Hacker Cup 2011 Qualification Round: the PHP code

Facebook Hacker Cup 2011 Qualification Round: the PHP code
I wrote about how I completed the 3 exercices of Facebook's Hacker Cup 2011 qualification round in my previous posts (Double Squares, Peg Game and Studious Student) and now I'll provide the code I wrote. Since the Facebook qualification round ended, I guess it's safe to post, and will allow people who have kept their input and output to really confirm if they won or not (it seems some people receive mails saying they do, then saying they don'ta looks like the Hacker Cup was hacked together a bit too...

Latest PHP Tweets