PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 121 to 140 of 270

Text and Media Files

Text and Media Files
With a team of developers, I recently built a mission-critical web app that relied heavily upon the manipulation of files. I'd like to give you a tour of the tools we used for media conversion, PDF generation, and JS minification. PHP functionsYou can get the entire content of a file using file_get_contents($filename). Similarly, you can write the entire contents of a file using file_put_contents($filename, $contents). There are many more useful filesystem functions in the manual.Command lineA lot of...

SitePoint.com: Introduction to Unit Testing in PHP with PHPUnit

SitePoint.com: Introduction to Unit Testing in PHP with PHPUnit
On SitePoint there's a new tutorial that introduces you to some of the basics of unit testing your PHP application with the help of the popular testing tool PHPUnit. (Disclaimer: I am the author of this article).It's a familiar situation: you've been developing on an application for hours and you feel like you've been going round in circles. You fix one bug and another pops up. [...] You've been there, right? You've had these same frustrations with all your applications, and have sat back and thought...

Brian Swan's Blog: Video Tour of PHP Manager for IIS

Brian Swan's Blog: Video Tour of PHP Manager for IIS
In this new post to his blog today Brian Swan includes a video that's perfect for anyone wanting to know more about the PHP Manager for IIS but didn't have the time to get into it.Last week, Ruslan Yakushev announced the release of the 1.1 version of the PHP Manager for IIS. I thought a tour of the PHP Manager functionality might work best in video format. I'd be interested learning what you think of the PHP Manager itself, but also in knowing what you think of the video format.He covers me of the basics...

Intermediate PHP

Intermediate PHP
At last night's Burlington, Vermont PHP Users Group meeting I gave an Intermediate PHP talk where I discussed working with arrays, functions, and objects. You can view the presentation on SlideShare or see the code examples on GitHub. A big thanks to Matthew Weier O'Phinney for helping to put together the presentation (unfortunately he was not able to make it to the meeting due to unforeseen circumstances) and to Office Squared for hosting the meeting. The slides are licensed under a Creative Commons...

Christoph Dorn's Blog: FirePHP on Magenting

Christoph Dorn's Blog: FirePHP on Magenting
Christoph Dorn has a new post to his blog today about using the FirePHP extension for Firefox/FireBug to help debug applications running on the Magenting service.FirePHP can be useful when debugging remote PHP applications on shared or dedicated servers. This tutorial illustrates how to setup FirePHP 1.0 on Magenting which is a managed Magento hosting service. Go to http://magenting.com/ and create an account. This tutorial was prepared by using a Spark account, but it should work just the same with all...

Ibuildings techPortal: lessphp: PHP implementation of Less CSS

Ibuildings techPortal: lessphp: PHP implementation of Less CSS
On the Ibuildings techPortal today there's a new tutorial from Robert Raszczynski with his look at the lessphp project - a native PHP implementation of the LESS CSS framework.In a nutshell, Less CSS is a tool that lets you simplify your CSS style sheet and allows you to extend limited CSS functionality by introducing variables, mixins, operations and nested rules. The original implementation is written in Ruby; however, there is a PHP solution based on LESS CSS called lessphp.He mentions the good and the...

Web Builder Zone: Real-life closures examples...for real

Web Builder Zone: Real-life closures examples...for real
On the Web Builder Zone (from DZone.com) Giorgio Sironi has a new post about closures with some real life examples...no really, real ones.I wrote an article long time ago about array_map(), array_filter(), and they are very handy in some cases, but I discovered there is a catch: they do their best when you already have a defined function to pass them. [...] So here's my real real-life example for closures: in my opinion, they are not meant for substituting foreach(), but for example to pass a curried...

Site News: Popular Posts for the Week of 12.17.2010

Site News: Popular Posts for the Week of 12.17.2010
Popular posts from PHPDeveloper.org for the past week:PHP.net: PHP versions 5.2.15 and 5.3.4 Released! Webgeekly.com: 20 Tips you need to learn to become a better PHP Programmer PHPBuilder.com: 10 PHP Tricks for Associative Array Manipulation Lorna Mitchell's Blog: Declaring Static Methods in PHP QaFoo.com: Testing file uploads with PHP Community News: Ibuildings announces Dutch PHP Conference 2011 Francesco Montefoschi's Blog: PHPADD: abandoned docblocks detector Brian Swan's Blog: How to Change...

Community News: ElePHPants - the Next generation

Community News: ElePHPants - the Next generation
If you've been trying to get your hands on one of the cuddly little mascots for PHP (the elePHPant) but haven't managed to yet, there's some good news! Another run of the fuzzy little animals is being done (the 6th) and this time they're offering something new - pink elePHPants.As we are now out of every of the 5 first generation of the elephpants, it is time to start a 6th. You'll find here all information to include yourself. [...] Fill in your elephpants wishes. We do not need any payement now. We...

Thumbnails

Thumbnails
Many of us have had the pleasure of building a web application that requires the automated building of thumbnails from images that are uploaded at runtime. Thumbnails are hardly the stuff of Nobel laureates, but they're an uncommon enough annoyance that implementing code to produce them seems like a fresh experience each time. The easiest way to produce thumbnails for a site is to use a pre-built library designed for that purpose. There are a few decent libraries for this, including the PHP Thumbnailer...

iFadey.com: Get Flickr Images Using SimpleXML

iFadey.com: Get Flickr Images Using SimpleXML
In this new post to the iFadey blog, there's a quick tutorial on using SimpleXML to fetch and parse the image feeds from Flickr.In this article you will learn two main things: how to parse XML using SimpleXML and how to get Flickr images from RSS feed and display them on your web page.He offers both a demo of it in action and a download of the source for those that want to jump right in. The tutorial walks you through fetching the XML feed for a Flickr gallery, loading it into a SimpleXML object and...

Chris Hartjes' Blog: Fun with API's - FRAPI and django-tastypie

Chris Hartjes' Blog: Fun with API's - FRAPI and django-tastypie
In some of his development work, Chris Hartjes has come across two tools that have made his life simpler, one that's specifically related to PHP and building APIs.Well folks, I've had another one of these ["why didn't I see this earlier"] moments. What is it? Repeat after me: THOU SHALL BUILD YOUR APPLICATION AS AN API FIRST, AND FRONT END SECOND. [...] So, here are two tools that I think my readers should know about. For those working with PHP, I cannot recommend enough the use of FRAPI if you have a...

ServerGrove Blog: ServerGrove is Once Again Sponsoring PHPBenelux

ServerGrove Blog: ServerGrove is Once Again Sponsoring PHPBenelux
As is mentioned in this new post to the ServerGrove blog, the company will be sponsoring the upcoming PHP Benelux conference happening January 28th and 29th, 2011 in Antwerp, Belgium.ServerGrove will be sponsoring the PHPBenelux Conference 2011 this year. PHPBenelux is one of the most active PHP organizations in Europe steadily promoting knowledge sharing events like this one. The 2011 conference offers an awesome schedule over two days. Friday January 28th offers tutorial sessions in the morning and the...

Oracle Technology Network: Using PHP and Oracle Database 11g (Tutorials)

Oracle Technology Network: Using PHP and Oracle Database 11g (Tutorials)
As mentioned by Chris Jones today, the Oracle Technology Network has posted a few new tutorials in their "Oracle By Example" series. Two of them deal with using PHP and the 11g version of the Oracle database.The first, Using PHP with Oracle Database 11g, is an introduction to some of the basics of interacting with the database including using connection pooling and tips on query optimization.The second tutorial, Developing a PHP Web Application with Oracle Database 11g, shows you how to build up a basic...

PHP.net: PHP 5.2.16 Released (End of Support for 5.2.x Series)

PHP.net: PHP 5.2.16 Released (End of Support for 5.2.x Series)
The latest version in the PHP 5.2.x series has been released today - PHP 5.2.16, the end of support for the 5.2.x series.This release focuses on addressing a regression in open_basedir implementation introduced in 5.2.15 in addition to fixing a crash inside PDO::pgsql on data retrieval when the server is down. All users who have upgraded to 5.2.15 and are utilizing open_basedir are strongly encouraged to upgrade to 5.2.16 or 5.3.4.They also link to the PHP 5.3 migration guide to help make the upgrade to...

The PHP collective

The PHP collective
The PHP collective (or the "PHP-Kolektiv" in German) provides you with a new amazing alternative for PHP training in Germany. Read more for schedule, dates and prices.

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:Ken Guest's Blog: Book Review: jQuery 1.3 with PHP PHPBuilder.com: Build an MVC Framework with PHP Konstantin's Blog: The Twitter OAuth PHP Class Gets Even Better IBuildings Blog: 137 CMS Systems NETTUTS.com: How to Build a Shopping Cart using CodeIgniter and jQuery WPEngineer.com: Use WordPress Cron NETTUTS.com: Tools of the Trade: Web Development Frameworks that the Pros Use PHP.net: PHP 5.2.12 Released! Sameer Borate's Blog: 7 essential...

Tutorial: Introduction to Unit Testing in PHP with PHPUnit

Tutorial: Introduction to Unit Testing in PHP with PHPUnit
It's a familiar situation: you've been developing on an application for hours and you feel like you've been going round in circles. You fix one bug and another pops up. Sometimes, it's the same one you found 30 minutes ago, and sometimes it's new, but you just know it's related. For most developers, debugging means either clicking around on the site, or putting in a whole load of debugging statements to hunt the problem down. You've been there, right? You've had these same frustrations with all your...

PHP 5.2.16 Released!

PHP 5.2.16 Released!
The PHP development team would like to announce the immediate availability of PHP 5.2.16. This release marks the end of support for PHP 5.2. All users of PHP 5.2 are encouraged to upgrade to PHP 5.3. This release focuses on addressing a regression in open_basedir implementation introduced in 5.2.15 in addition to fixing a crash inside PDO::pgsql on data retrieval when the server is down. All users who have upgraded to 5.2.15 and are utilizing open_basedir are strongly encouraged to upgrade to...

Legacy Jungle

Legacy Jungle
At some point in every developer's career, they get the opportunity to work on a gnarly, horrible briar patch of a project. Surviving that experience sharpens one's mind and skills. I like to believe that no developer sets out to create a monstrous mess of code. Instead, messes grow organically. As developers are pressed for time, lack experience, or are faced with ever-shifting requirements, the mess gets bigger until it's too big and hairy to handle. However these messes come to be, it could one day be...