PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 41 to 60 of 186

Chris Roane's Blog: Options for Building a Website from a Developers Perspective

Chris Roane's Blog: Options for Building a Website from a Developers Perspective
Chris Roane has a new post to his blog outlining a few different options web developers today have for creating new websites or applications - static, custom, framework-based or CMS.Over the years I've built many different types of websites. These range from being a few pages, to being very customized with advanced features. I've learned there is no clear definition in the best way to create a website. But I do think there are advantages and disadvantages to pursuing different methods. This article takes...

Automatic deployment with git and gitolite

I read a post recently by Sean Coates about deploy on push. The concept is nothing new: you set up a hook that listens for commits on specific branches or tags, and it then deploys your site from that revision. Except I'd not done it myself. This is how I got there.

PHPMaster.com: Multi-Factor Authentication with PHP and Twilio

PHPMaster.com: Multi-Factor Authentication with PHP and Twilio
In this new tutorial on PHPMaster.com, Timothy Boronczk looks at using the Twilio API and multi-factor authentication.You can make and receive phone calls and send and receive text messages using TwiML (Twilio Markup Language) and their REST API. You can work directly with the API, or use one of the available helper libraries. The library I'm using is twilio-php, which is the library released and officially supported by Twilio.He shows you how to use the Twilio API library to create a connection object...

A Tour of Go

A Tour of Go
Last week we had to write what a small specialized HTTP client that connects to a server and issues GET requests to fetch data. Simple enough. The only issue is that the data provider required us to use maximum one connection at any time, using HTTP pipelining to issue all the GET requests in the same connection and then block until they respond with new data. In practice this is not very complex, but PHP (our go-to hammer) is not really shining in this area.All the HTTP abstractions around curl/http...

Mayflower Blog: Software Architecture Decisions - How to do it Wrong the Hard & Easy Way

Mayflower Blog: Software Architecture Decisions - How to do it Wrong the Hard & Easy Way
On the MayFlower blog today there's a new post looking at two ways to do software architecture (the easy way and hard way) and some of the traditional practices behind its development.When it comes to software architecture, stuff gets funny. First we learn everything about it at university. We learn to use it as a part of our main project plan. We learn how to do risk evaluation. [...] Since we didn't have a lot of experience with software back then, the resulting architecture is a badly done, but well...

PHP-Tip-a-Day: PHP Tutorial: King Floyd and the Seventeen Princes - A Tale of the Observer Pattern

PHP-Tip-a-Day: PHP Tutorial: King Floyd and the Seventeen Princes - A Tale of the Observer Pattern
On the PHP-Tip-a-Day site today there's an new "fable" posted in the Design Pattern Fables series. This time it's about the Observer pattern (and kings and princes).The first place I recall encountering the observer pattern was not in PHP, but in JavaScript. If you've ever set a listener to fire when an event happened, you've used the observer pattern. Functions or methods are registered with an object so that when it experiences a specific event, it "notifies" the registered functions or methods by...

Introducing JsQuickFix

Introducing JsQuickFix
Fans of PHPDeveloper.org (@phpdeveloper) or the PHPQuickFix (@phpquickfix) news feeds to keep up with some of the latest things in the PHP community, but looking for something a bit more on the Javascript side are in luck. To compliment the PHPQuickFix site/twitter account, I've started up a Javascript-centric feed of hand-picked items I find in my reading that look useful/interesting/are more than just fluff - JsQuickFix (and @jsquickfix on Twitter). This uses the same setup I have for the PHPQuickFix...

Robert Basic's Blog: Using the new autoloaders from Zend Framework 1.12

Robert Basic's Blog: Using the new autoloaders from Zend Framework 1.12
Robert Basic has a new post today about the autoloaders in Zend Framework 1.12 and how to use them to create a classmap for use in your application.The latest, and last, release of the Zend Framework 1.x series is just around the corner as ZF 1.12.0RC1 was announced this week. As I still have projects running ZF1 I thought about giving the most interesting new feature (for me) a spin - the new autoloaders which are backported from ZF2. I decided using the classmap autoloader as the main autoloader, and...

Site News: Popular Posts for the Week of 06.22.2012

Site News: Popular Posts for the Week of 06.22.2012
Popular posts from PHPDeveloper.org for the past week:Oscar Merida's Blog: Using bcrypt to store passwords Reddit.com: Where can I find a free place to edit PHP code and see the results? Nikita Popov's Blog: The true power of regular expressions /Dev/Hell Podcast: Episode 14: The PHP Guy Is Sulking EngineYard.com: Cloud Out Loud Podcast - "Lithium and Boating" Gonzalo Ayuso's Blog: Building a simple SQL wrapper with PHP. Part 2. Site News: Popular Posts for the Week of 06.15.2012 PHPMaster.com: Web...

Ole Markus With's Blog: Experimenting with uWSGI and its PHP plugin

Ole Markus With's Blog: Experimenting with uWSGI and its PHP plugin
In a recent post to his blog Ole Markus With looks at using the uWSGI server to serve up PHP applications that works similarly to the FastCGI Process Manager that's included with PHP.If we ignore the additional features, using uWSGI with PHP is somewhat equivalent to using the Process Manager (FPM) that ships with PHP. Just like FPM, the concept is that PHP runs inside a server dedicated to handling the processes/threads running the PHP code. This in contrast to running PHP inside of the actual...

Zend on IBM private/public clouds at NYPHP

Zend on IBM private/public clouds at NYPHP
Next Tuesday, June 26th, I'll be speaking at the New York PHP user group about the project I led to bring the Zend Application Fabric onto IBM's on-premise private cloud rack, PureSystems, and onto IBM's public cloud, SmartCloud Enterprise. I'll describe the Zend Application Fabric for highly available PHP clusters, and show how its topology [...]

Grzegorz Godlewski's Blog: Automating software development and deployment

Grzegorz Godlewski's Blog: Automating software development and deployment
Grzegorz Godlewski has a new post to his blog that looks at some of the concepts and practices around automated software deployment and development (specifically with Phing).Phing is a tool designed for automated project building based on Apache Ant distributed as a PEAR extension. It provides the user with the possibility of building the project / application in the same manner as make does with its Makefiles, making complex process execution (which is commonly human error prone) much easier.He walks...

DZone.com: Record and replay for testing of legacy PHP applications

DZone.com: Record and replay for testing of legacy PHP applications
In this new post to DZone.com Giorgio Sironi looks at a method for "recording" the request and response information for an application that might be lacking in documentation using PHP's output buffering.So you've got this big ball of code. You don't even know how to call all of these scripts, but the code is in production and works just fine (until you have to change even a single line). How to define some characterization tests that describe how the .php scripts work now? [...] If tests do not exist, we...

Michael Nitschinger's Blog: Using Couchbase as a flexible session store

Michael Nitschinger's Blog: Using Couchbase as a flexible session store
Michael Nitschinger has a new post to his site today showing how to implement Couchbase as a storage mechanism for your session information (including some handy extra features).What do I mean by flexible? Well, the combination of a highly scalable key-value store and the possibility to query your data through views allows you to gain unique insight inside your data in near realtime. [...] Let's look at some obstacles that we as application developers face and then see how we may solve them through...

PHPMaster.com: An Introduction to Dependency Injection, Service Locators & Factories (Part 1)

PHPMaster.com: An Introduction to Dependency Injection, Service Locators & Factories (Part 1)
On PHPMaster.com they've posted the first part of a series looking at something that's become a hot topic in the PHP community over the last months - dependency management and service locators.From a programmer's perspective, the process of designing easily consumable APIs while still keeping a decent level of decoupling between the involved classes is always a tricky trade-off, as the more expressive the dependencies are, the harder the work is that needs to be done behind the scenes for wiring up the...

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:Techie Talks Blog: Building Secured Web Applications Using PHP - The Basics DevShed: Integrate Facebook Comments Code with Wordpress or PHP PHPBuilder.com: Getting Started with Jenkins for PHP Developers Symfony Blog: Symfony2: Getting Easier - Interactive Generators Test.ical.ly Blog: PHP 5.4 with traits, Doctrine 2.2 and then Symfony3? PHP and Me Blog: Use Phing to Update your SVN-Version-Controlled Website Automatically, Through FTP Knp...

solr: Too many open files

solr: Too many open files
AWe recently reimplemented a search in a client project with solr (version 3.5). For the communication between our PHP application and the solr server we used the PHP library solr-php-client (http://solr-php-client.googlecode.com). After the first release to the stage server our client run loadtests on the whole application and the results for the search use case were pretty bad: 80% failures and an average response time of 30 seconds. The loadtest was run with 1000 parallel requests over 10 hours. When...

This site now runs on SPDY

This site now runs on SPDY
SPDY?ASPDY is an aoupgradea to HTTP 1.1 proposed by Google to circumvent some of the shortcomings of HTTP 1.1. It's one of the canditates for aoHTTP 2.0a and is already supported by Chrome and Firefox. It's goal is to make the web experience faster (and more secure). The main feature from my point of view is that with SPDY the browser only has to open one TCP connection to the server and all resources are delivered through that connection. No need anymore to aofakea different servers with different...

Berliner WeiAYe

Berliner WeiAYe
I think this is the first piece I've written on my blog that is tagged only aobeera; apologies to my readers who don't care about such things (there are feeds for PHP and Web as well, if you'd prefer to avoid the occasional post on beer geekery). I love a good berliner weiAYe beer. For those of you that haven't had the pleasure of enjoying a glass, it's a very light and refreshing, sour and acidic, low alcohol beer. It's as acidic as lemonade, and low enough in alcohol that the Germans even occasionally...

Selenium 2: Wrong Browser Launched

Selenium 2: Wrong Browser Launched
I have a test suite with PHPUnit and Selenium. I recently upgraded to Selenium 2 (Selenium WebDriver) and updated my PHP code. I specified explicitly in my code that Firefox should be used but the tests consistently opened Chrome instead. The error did not come from the fact that I incorrectly updated my code. You see, with Selenium 1 test cases, browsers were defined like this: *firefox. With Selenium 2, you have to drop the asterisk like this: firefox. Otherwise, your system's default browser will be...