PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 81 to 100 of 225

Robert Basic's Blog: Communicating with Pidgin from PHP via D-Bus

Robert Basic's Blog: Communicating with Pidgin from PHP via D-Bus
Robert Basic has put together a new tutorial on his blog showing how he connected PHP and Pidgin (the popular chat client) with the help of the DBus extension.Earlier this week I got an idea of trying to communicate with Pidgin, a chat client, via the terminal. [...] Surely I wasn't the first one to come up with this idea and after a bit of a googling found out that Pidgin's libpurple has a nice API for that, exposed via D-Bus. I first planned to write some scripts for this in Python or C, but when I...

Michaelangelo van Dam' Blog: Configuring Zend Framework apps for Windows Azure

Michaelangelo van Dam' Blog: Configuring Zend Framework apps for Windows Azure
Michelangelo van Dam is back with the second part of his series looking at running PHP applications on Azure (the first part is here). In this new post he focuses more on configuring and building an actual application, one based on the Zend Framework. Building web applications is nothing new anymore, as we've been doing it since the early days of the internet, but we've always done this on a single system. Even when Zend Framework came round, we kept doing the same thing and build apps for a single...

Community News: Latest PEAR Releases for 12.19.2011

Community News: Latest PEAR Releases for 12.19.2011
Latest PEAR Releases: Image_QRCode 0.1.2 PEAR_Frontend_Gtk2 1.1.0 Image_Text 0.6.1 Date 1.5.0a2 PHP_Shell 0.3.2 Text_Highlighter 0.7.3 Validate_DK 0.2.0 PEAR_PackageFileManager_Frontend 0.8.0 Services_ExchangeRates 0.7.0 Console_Color2 0.1.0 Validate 0.8.5

Egomaniacal and Scalable Apps

Egomaniacal and Scalable Apps
The rise of cloud computing over the past few years has been incredible. Unfortunately, many still do not see the interest or do not comprehend its importance. This is not a post about cloud computing and its benefits, but rather a refresher about understanding some basic rules of scalability and how to get started with building scalable apps while keeping in mind that most people and companies have limited budgets.The concept of shared-nothing architectures is well known in the scalability...

19.12. Test Driven JavaScript Development

19.12. Test Driven JavaScript Development
A couple of weeks ago, I was attending a three-day workshop for agile developer skills. The workshop was split into five topics: Colaboration, Refactoring, Design & Architecture, Continious Integration and Test Driven Development. Especially the session about Test Driven Development was very interesting. Although I know the principles of TDD I was really impressed by the demonstration of solving a simple exercise (a coding kata) done in Java by the instructors of the workshop. It was not so much the...

Configuring Zend Framework apps for Windows Azure

Configuring Zend Framework apps for Windows Azure
Building web applications is nothing new anymore, as we've beendoing it since the early days of the internet, but we've alwaysdone this on a single system. Even when Zend Framework came round,we kept doing the same thing and build apps for a singleenvironment.But as I've discussed already in my previous article, developing for the cloud requires anotherapproach.As you can see, your system now falls appart into all differentcomponents that are systems by themselves. And each system has itsown purpose,...

Welcome to new contributors

Welcome to new contributors
With the PEAR move to github surpassing 200 repositories, we're seeing more contributions from folks lurking in the shadows. In particular I'd like to highlight the efforts ofAmeldra andAGemorroj. With XML_Feed_Parser hosted on github, Meldra has been able to provide all of the patches that have been sitting in the wings internally back to PEAR, with no fuss. Faced with a backwards compability requirement on Image_Barcode, GemorrojAcontributed heavily to an Image_Barcode2. Having watched these two...

18.12. Cloud2Go Services for your web development

18.12. Cloud2Go Services for your web development
From simple to full featured cloud capacity Cloud technologies and services increase every day. Global players like Amazon put continuously new features to their cloud and products to provide sufficiently functionality of actually web development activities and requirements. Services for us In fact, Amazon starts with the S3 (Simple Storages Service) to provide cloud storage space since 2006 and only a few months later EC2 (Elastic Compute Cloud) was launched a service to provide computing power to...

Simplifying Commerce for Small Business

Simplifying Commerce for Small Business
Selling has never been easy. There's too much red tape. The simple act of you giving me currency in exchange for a good or service I provide is not so simple when you factor in sales tax, VAT, inventory, shipping, reporting income, and any number of other factors that require accounting and fulfillment to be a damned nightmarea-aand that's just when you give me paper money! When dealing with online transactions and credit cards, it can be downright gruesome. The early days of commerce on the Web were...

17.12. Zend Framework (1) vs. Symfony2

17.12. Zend Framework (1) vs. Symfony2
.serendipity_entry h1 { font-size: 20px; margin: 13px 0; } .serendipity_entry h2 { margin: 7px 0; } .serendipity_entry ul { padding-left: 3em; } .gist-data { max-height: 250px; overflow: auto; } In this article, I want to highlight some differences between the two PHP frameworks that have been the most popular ones at the time of writing. Zend Framework (ZF) is currently a quasi-standard in many PHP companies and Symony2's popularity is constantly increasing. Symfony2 is pretty new now and...

PHP for All the Things

PHP for All the Things
PHP was originally designed for web sites and is still widely thought of only as a programming language for the Web. But with the approaches below and a variety of useful console libraries, PHP works great for command line scripts, too. At Etsy, we have a variety of command line utilities that are all written in PHP. Having our web site and command line utilities in the same language means easier mental context switches between the two environments. It also lets us reuse web code from the command line,...

Appearance on the Engine Yard Podcast

Appearance on the Engine Yard Podcast
The wonderful folks at Engine Yard invited me and my friends and fellow co-authors Lorna Jane Mitchell and Davey Shafik to be guests on an episode of their PHP podcast with our good mutual friend Elizabeth Naramore as our host. We discuss our recently published book PHP Master: Write Cutting Edge Code, how SitePoint brought us together to work on the project, what it was like to write the book, and some reflections on the experience from each of us. If you've heard about the book and not read it or been...

PHPMaster.com: Understanding the Factory Method Design Pattern

PHPMaster.com: Understanding the Factory Method Design Pattern
On PHPMaster.com today there's a new design pattern-focused that introduces you to using the Factory method to create new objects on the fly.The Factory Method pattern is a design pattern used to define a runtime interface for creating an object. It's called a factory because it creates various types of objects without necessarily knowing what kind of object it creates or how to create it.Code is included showing how to make creating "Product_*" classes as simple as calling a "build()" method with the...

Brian Smithwick's Blog: Software development and the locked box

Brian Smithwick's Blog: Software development and the locked box
In this recent post to his blog Brian Smithwick talks about the "locked box" that developers can sometimes restrict themselves to - getting to comfortable in the tech they already know and not branching out.Jason Austin gave a great presentation at CodeWorks Raleigh recently about cultivating one's passion for software development through side projects -- safe spaces where we can play with new technologies and techniques. The point's well taken: as developers, we're probably putting most of our energy...

Nikic's Blog: How big are PHP arrays (and values) really? (Hint: BIG!)

Nikic's Blog: How big are PHP arrays (and values) really? (Hint: BIG!)
In this recent blog post nikic takes an in-depth look at how large PHP arrays really are - how memory is used in the creation and management of these handy PHP variable types.In this post I want to investigate the memory usage of PHP arrays (and values in general) using the following script as an example, which creates 100000 unique integer array elements and measures the resulting memory usage. [...] How much would you expect it to be? [...] Now try and run the above code. You can do it online if you...

On Error Handling and Closures

The error suppression operator in PHP ("@") is often seen as a necessary evil. Many, many low-level function will return a value indicating an error, but also raise an E_NOTICE or E_WARNING -- things you might be able to recover from, or conditions where you may want to raise an exception. So, at times, you find yourself writing code like this: if (false === ($fh = @fopen($filename, 'r'))) { throw new RuntimeException(sprintf('Could not open file "%s" to read', $filename)); } Seems straight-forward...

On Error Handling and Closures

The error suppression operator in PHP ("@") is often seen as a necessary evil. Many, many low-level function will return a value indicating an error, but also raise an E_NOTICE or E_WARNING -- things you might be able to recover from, or conditions where you may want to raise an exception. So, at times, you find yourself writing code like this: if (false === ($fh = @fopen($filename, 'r'))) { throw new RuntimeException(sprintf('Could not open file "%s" to read', $filename)); } Seems straight-forward...

Sebastian Bergmann's Blog: Using CLANG/scan-build for Static Analysis of the PHP Interpreter

Sebastian Bergmann's Blog: Using CLANG/scan-build for Static Analysis of the PHP Interpreter
In a new post to his blog Sebastian Bergmann takes a quick look at using a static analyzer, clang and scan-build, to analyze the PHP interpreter (specifically during the compile process).I have been tinkering with CLANG's static analyzer lately. This post summarizes how I installed LLVM and CLANG and performed the analysis of a build of the PHP interpreter.He includes all the commands (unix-based) to get the clang tools/libraries installed in the correct places as well as what to add to your $PATH to get...

php|architect: CodeWorks East 2011 Recap

php|architect: CodeWorks East 2011 Recap
On the php|architect site today Keith Casey has written up a summary of the eastern leg of the CodeWorks conference tour that just wrapped up in Orlando, Florida.While it will still be a few days weeks until I'm finally recovered, I wanted to share a recap of CodeWorks East 2011 while it was still fresh. If you're looking for the core presenters' slides, attendees will receive them via email but they will not be published publicly until after the West Coast Tour is complete in January 2012.He mentions...

Site News: Popular Posts for the Week of 12.16.2011

Site News: Popular Posts for the Week of 12.16.2011
Popular posts from PHPDeveloper.org for the past week:Nelm.io Blog: Composer: Part 1 - What & Why PHPBuilder.com: PHP Arrays: Advanced Iteration and Manipulation CodeIgniter.com: PHP Framework Usage Survey Devshed: Building a PHP ORM: Deploying a Blog WorkingSoftware Blog: Your templating engine sucks & everything you've written is spaghetti code Watts Martin's Blog: PHP is not an acceptable COBOL DZone.com: Writing Better PHP: Three Guides Michaelangelo van Dam' Blog: Windows Azure for PHP developers...