PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 6041 to 6060 of 6889

Cal Evans' Blog: Man up! (A developer's responsibility to their team)

Cal Evans' Blog: Man up! (A developer's responsibility to their team)
Cal Evans has a suggestion for all of the developers out there not happy with decisions being made at their workplace (or in the contracts they work with) - man up!Look, it's easy. As developers, we see people we don't respect making decisions we don't agree with. I know how difficult this position is because like every other developer in the world, I've been in this position. However, unlike a lot of developers I've talked to in recent years, I don't see "digging my heals in" or whining as...

Jani Hartikainen's Blog: Using unit tests as requirements when refactoring

Jani Hartikainen's Blog: Using unit tests as requirements when refactoring
Jani Hartikainen has a suggestion for all developers out there who are working through their code and refactoring as they go - make unit tests a requirement during the process.What should you do to make sure new code works properly when you're refactoring old code? I asked myself this question recently, when I needed to refactor a big bunch of procedural PHP code into a neat, testable, OOP-style interface. The conclusion I came into is that you should write unit tests - not to test the old code, but as...

Chris Shiflett's Blog: Twitter OAuth

Chris Shiflett's Blog: Twitter OAuth
Chris Shiflett has a new post to his blog today about the new authentication model Twitter uses, OAuth, and how you can connect your PHP applications to their services.I've been working on a project with my Analog friends that might use the Twitter API to streamline stuff like signup for those who already use Twitter. Because this now requires OAuth, I needed to implement OAuth quickly, so that we had something to test and consider.He chose this Twitter library to connect his application and mentions the...

Site News: Popular Posts for the Week of 09.17.2010

Site News: Popular Posts for the Week of 09.17.2010
Popular posts from PHPDeveloper.org for the past week:CodeForest.net: Key/value tables and how to use them in PHP and MySQL Dhiraj Patra's Blog: Getting Started with iPFaces PHP Mobile Application Framework TechChorus Blog: What is your definition of a "True PHP Developer?" Cal Evans' Blog: How do I find good PHP developers? Zend Developer Zone: Getting started with CouchDB : meet PHP on Couch Oracle Technology Network: PHP Web Auditing, Authorization and Monitoring with Oracle Database Smashing...

Practical PHPUnit: Testing XML generation

Practical PHPUnit: Testing XML generation
Testing classes which generate XML can be a cumbersome work. At least, if you don't know the right tricks to make your life easier. In this article, I will throw some light upon different approaches and show you, how XML generation can be tested quite easily using XPath.

Brandon Beasley's Blog: Codeigniter Vanity URLs

Brandon Beasley's Blog: Codeigniter Vanity URLs
On his blog Brandon Beasley has a new tutorial for CodeIgniter users out there on how to create "vanity URLs" that are correctly handled by the framework's routing system.Recently I worked on a CodeIgniter project that needed the ability to use vanity URLs and display stats about the user represented by the URL. For instance, suppose you want to pull all public data on a user from Twitter and display it within your web application on a customized URL such as http://mytwitterapp.com/brandonbeasley . The...

Twitter OAuth

Twitter OAuth
This post is a quick walkthrough of implementing Twitter OAuth, complete with a working demo. I've been working on a project with my Analog friends that might use the Twitter API to streamline stuff like signup for those who already use Twitter. Because this now requires OAuth, I needed to implement OAuth quickly, so that we had something to test and consider.As with all things related to developing with Twitter, my first step was to seek advice from my good friend Ed Finkler. Without hesitation, he...

ServerGrove Blog: Implementing a staging/live website system with symfony and Apostrophe CMS

ServerGrove Blog: Implementing a staging/live website system with symfony and Apostrophe CMS
On the ServerGrove.com blog today there's a new tutorial posted showing how to, using symfony and the Apostrophe CMS, create a full staging and live setup with different URLs for each.This system allows you to make changes to a website and preview them before actually going live. It can be implemented with any website, we will show the necessary requirements and steps to implement with symfony and Apostrophe CMS, but you can also take parts of the tutorial and implement them without these applications....

Perplexed Labs: Convert HTML to PDF in PHP (libwkhtmltox extension)

Perplexed Labs: Convert HTML to PDF in PHP (libwkhtmltox extension)
On the Perplexed Labs blog today Matt has this new post looking at a common issue developers face when they're trying to make their site easier for users to get their information off a site and onto their local machines - converting HTML over to PHP (using wkhtmltopdf).Often this involves using somewhat cryptic output primitives and creating the PDF by hand. Wouldn't it be nice if there were a way to re-use all that beautiful HTML, CSS, and maybe even Javascript that you already wrote? Well, there is....

Announcing Zend Framework's Bug Hunting Days: Today, Tomorrow & Saturday!

Announcing Zend Framework's Bug Hunting Days: Today, Tomorrow & Saturday!
Yep, it's the third week of the month again- and you know what that means: Zend Framework Monthly Bughunt! Today, Tomorrow and Saturday of September (the 16th, 17th and 18th 2010), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month, we organize the community to help reduce the number of open issues reported against the framework.

Ralph Schindler's Blog: Exception Best Practices in PHP 5.3

Ralph Schindler's Blog: Exception Best Practices in PHP 5.3
Ralph Schindler has put together a new post for his blog about some of the best practices for using exceptions in PHP 5.3 - specifically dealing with some of the new functionality that comes with this latest PHP version.Exception handling in PHP is not a new feature by any stretch. In this article, we'll discuss two new features in PHP 5.3 based around exceptions. The first is nested exceptions and the second is a new set of exception types offered by the SPL extension (which is now a core extension of...

Chris Jones' Blog: Oracle Database and Instant Client 11.2.0.2 are available on Linux

Chris Jones' Blog: Oracle Database and Instant Client 11.2.0.2 are available on Linux
On his OTN blog today Chris Jones announces the release of the latest Oracle database and Instant Client libraries (11.2.0.2) for the linux OS:The Oracle 11.2.0.2 Instant Client libraries are now available on Linux x86 and x86_64 platforms from the Instant Client home page. And they'll soon be uploaded on ULN for customers with Oracle Linux support to install via the update server. If you are one of the (not so?) few users of command line PHP then you might want to grab the new client because it has...

Court Ewing's Blog: Forget Concatenation; Format your strings!

Court Ewing's Blog: Forget Concatenation; Format your strings!
On his blog today Court Ewing has posted a tutorial about a different approach to merging strings while formatting them at the same time - using sprintf and printf for more than just a single-shot output.I do it, you do it, everyone does it! We all concatenate. If you're simply combining a few variables or constants together, concatenation is the way to go. After all, it is quick and easy, and who can complain about that? However, concatenation does have two serious drawbacks: any sort of string...

Day Camp For Developers

Day Camp For Developers
I'm very excited by a new virtual event which is coming up, and at which I have been invited to speak. This is Day Camp 4 Developers, an event aimed at developers of all disciplines and focussing on the soft skills that sometimes we miss in our pursuit of technical excellence. I'll be giving my talk "Open Source Your Career", which looks at how being involved in open source outside of work can improve our professional development. The event is on November 6th, and you can buy tickets here. There are a...

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:NETTUTS.com: Getting Clean With PHP Derek Allard's Blog: Getting changes made to the CodeIgniter manual Blue Parabola Blog: Magento Feature Analysis Series, Part 10: Checkout Offering Think Vitamin Blog: How to Debug in PHP Hari KT's Blog: A simple Blog using Zend framework 1.9 Jani Hartikainen's Blog: What is a null object, and when are they useful? PHP.net: PHP 5.2.11 Released! Ibuildings techPortal: Grokking the REST Architecture Blue...

Eine EinfAhrung in Design Patterns

Eine EinfAhrung in Design Patterns
Die Kenntnis um Design Patterns (Entwurfsmuster) sollte zum Werkzeugkasten eines jeden Entwicklers gehAren, dem sauberes und wirtschaftliches Arbeiten am Herzen liegt. Die meisten Entwickler kennen und setzten zumindest die gAngigen Entwurfsmuster intuitiv ein. Kein Wunder, zeigen doch aktuelle Frameworks (z. B. Zend Framework) wie wunderbar durchdachte Software-Architektur basierend auf Design Patterns funktionieren kann und wie generisch die Komponenten aufgebaut werden kAnnen. Dies fArdert sowohl das...

Oracle Database and Instant Client 11.2.0.2 are available on Linux

Oracle Database and Instant Client 11.2.0.2 are available on Linux
The Oracle 11.2.0.2 Instant Client libraries are now available on Linux x86 and x86_64 platforms from the Instant Client home page. And they'll soon be uploaded on ULN for customers with Oracle Linux support to install via the update server....

Forget Concatenation; Format your strings!

Forget Concatenation; Format your strings!
I do it, you do it, everyone does it! We all concatenate. If you're simply combining a few variables or constants together, concatenation is the way to go. After all, it is quick and easy, and who can complain about that? However, concatenation does have two serious drawbacks: any sort of string formatting must be done manually, and it is difficult to visualize the "goal" string when it is sufficiently complex. Fortunately, the PHP core offers sprintf/printf which can greatly improve the readability of...

Exception Best Practices in PHP 5.3

Exception Best Practices in PHP 5.3
Every new feature added to the PHP runtime creates an exponential number of ways developers can use and abuse that new feature-set. However, it's not until developers have had that chance that some agreed-upon good usage and bad usage cases start to emerge. Once they do emerge, we can finally start to classify them as best or worst practices. Exception handling in PHP is not a new feature by any stretch. In this article, we'll discuss two new features in PHP 5.3 based around exceptions. The first is...

MySQL Sequence Generator

MySQL Sequence Generator
I have found that using global sequence for all table is a very good practice. You can mix data ids from all tables in a single place (e.g. search engine index) and do not worry about collisions. Unfortunately MySQL doesn't support sequences and we have to emulate such functional. I will show you how to make it for your database and integrate this solution using Zend_Db.

Latest PHP Tweets