PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 3281 to 3300 of 6889

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 4

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 4
Michelangelo van Dam has posted the fourth part of his "Quality Assurance in PHP projects" series to his blog today - a continuation of his emphasis on PHPUnit and testing his sample "Tic-Tac-Toe" game.In parts one, two and three we focussed on writing tests for a game of tic-tac-toe, with in parts two and three we optimized our tests so they focus on the functionality of the individual parts Grid and Player, with a collection class Players to handle Player objects.In this fourth part he focuses on the...

Community News: Latest PEAR Releases for 09.05.2011

Community News: Latest PEAR Releases for 09.05.2011
Latest PEAR Releases: MP3_Id 1.2.2 DB_DataObject 1.9.6 HTML_Template_Flexy 1.3.12 pearweb_channelxml 1.15.2 Auth_SASL 1.0.5

Drupal using Symfony2 HttpFoundation is huge

Drupal using Symfony2 HttpFoundation is huge
Drupal is big, no question. Over the last years Drupal has become one of, if not THE leading CMS. Now imho one of the reasons for its success is that it's a huge enabler for non programmers to get setup with a gigantic set of features. But here at Liip our bread and butter is highly customized applications or in other words if you can get your project done by installing a bunch of Drupal modules, then we are not the right shop to go to. We do however use Drupal when it's the best starting point for...

The Joind.in & I

The Joind.in & I
By now I'm sure a lot of the folks reading the posts from this blog know of the site I've helped shape over the past few years, Joind.in. It's become most successful in PHP circles, but has branched out into other communities, both tech and non-tech. Not too long after the project started up, it was decided to open source the code and pull in contributions from whoever offered their time. I personally feel that, for a first out of the box open source project for me, it's turned out well and has a great,...

Quality Assurance on PHP projects - PHPUnit part 4

Quality Assurance on PHP projects - PHPUnit part 4
A A AIn parts one, two and three we focussed on writing tests for a game of tic-tac-toe, with in parts two and three we optimized our tests so they focus on the functionality of the individual parts Grid and Player, with a collection class Players to handle Player objects. In this fourth part we should focus on playing the game. Let's go over the steps again:each player chooses a symbolfor each turn (max 9 turns)a player places his symbol on the gridif 3 symbols appear in a single row (horizontal,...

phpfarm moved to SourceForge

phpfarm moved to SourceForge
phpfarm, the tool that lets you install multiple PHP versions beside each other, finally got a proper project page on SourceForge. By moving from svn.php.net to SF, phpfarm got a nice git repository, a wiki and a ticketing system. It also has a Phing build file now which generates and uploads release files, so people don't have to install git to get phpfarm. Changes in 0.1.0 To celebrate the new home, I officially released phpfarm version 0.1.0. It fixes the following...

rooJSolutions Blog: Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.

rooJSolutions Blog: Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.
New from the rooJSolutions blog there's a post pointing out an issue that PHP 5.3.7 has broken the is_a functionality in a lot of cases. The post talks some about what's broken and how you can work around it if you're effected.The key issue was that 5.3.7 accidentally broke is_a() for a reasonably large number of users. Unfortunately the fixup release 5.3.8 did not address this 'mistake', and after a rather fruitless exchange I gave up trying to persuade the group (most people on mailing list), that...

Brian Moon's Blog: Check for a TTY or interactive terminal in PHP

Brian Moon's Blog: Check for a TTY or interactive terminal in PHP
In a new post to his blog Brian Moon describes a need he had for detecting if the client or user calling a PHP script was using an interactive terminal (TTY) or not:Let's say I am trying to find out why some file import did not happen. Running the job that is supposed to do it may yield an error. Maybe it was a file permission issue or something. There are other people watching the alerts. What they don't know is that I am running the code and looking at these errors in real time.Since the errors were...

CodeIgniter.com: Amazing Progress Report & Addition of IRC to CodeIgniter.com

CodeIgniter.com: Amazing Progress Report & Addition of IRC to CodeIgniter.com
On CodeIgniter.com there's a new post updating the community on more of the current happenings surrounding the project including the status of their move to github and another source for developers to find the CI help they need.In less than two weeks since the announcement was made at CICON that CodeIgniter was moving to GitHub, we've seen some incredible results from the change. Already CodeIgniter is the 10th most watched PHP project at GitHub (currently 758), with 42 open pull requests, 53 merged pull...

ledger stats

ledger stats
Occasionally, I need to take a break from the projects I'm working on. How do I do that? By working on another project, of course! Just over a year ago, I found ledger and began using it to manage my household finances. Some people may find that sort of thing boring, but I think it's it neat to look at the past year's worth of transactions, get a bird's eye view of our spending, identify trends, and so forth. I've had it in the back of my mind lately that I'd like a better and preferably more visual way...

Their Programming Language Sucks!

Their Programming Language Sucks!
Or at least this is what I hear often all around me. Many want to think that their language is better than all others, and go to greatAlengthsAto discredit them. Just like at sport events, people would paint their faces in their team's colors and yell insults at the opponents. I'm here to tell you that all languages are great and suck in their own way. There is no need to switch to a language just because someone told you that it was better; that's often irrelevant, although counter-intuitive. You will...

Site News: Popular Posts for the Week of 09.02.2011

Site News: Popular Posts for the Week of 09.02.2011
Popular posts from PHPDeveloper.org for the past week:PHPBuilder.com: Getting Started with the Fuel PHP Framework Christian Weiske's Blog: Working with .phar files Kevin Schroeder's Blog: The best developers hit F5 C. Sadeesh Kumar's Blog: Smart File Type Detection Using PHP Derick Rethans' Blog: Remote Debugging PHP with a Firewall in the Way Gonzalo Ayuso's Blog: Building a small microframework with PHP (Part 2). Command line interface Joris de Wit's Blog: Extending different layouts for Ajax requests...

Nemein and Infigo merge to create a digital agency focused on web and mobile

Nemein and Infigo merge to create a digital agency focused on web and mobile
Yesterday the contracts were signed to acquire Infigo as part of Nemein.AInfigo, is a consulting company focused on mobileAdevelopment and web using open source tools. You'll probably at leastAknow their CTO,AJerry of the USB finger fame. Even in the ten years of history of our company this is quite a significant move - itAallows us to combine Nemein's traditionalAexpertise on content management with Infigo's mobile offerings. AsAsmartphones and tablets are becoming popular, more and moreAservices we...

Learning About Web Services

Learning About Web Services
I'm updating my web services tutorial session at the moment for the PHPNW Tutorial Day. I switch the order of the topics around every time, in an effort to make it more digestible, and I thought I'd share. To start with, I get everyone to build a "My First Web Service" - basically a page that encodes an array into JSON. Since we'll be working on numerous practical examples, this is a good chance for everyone to make sure that their setup works! The next section is a diversion into talking about JSON...

Reverse proxy cache invalidation service

Reverse proxy cache invalidation service
We are currently working on a news site. As news is all about being up to date, but still manage to serve a large number of users with milli second response time, we obviously run into a bit of dilemma. We can use Varnish to cache the content, but then we will need to use a relatively short cache time out or we risk not getting updates to our users quickly enough. A better approach is to use invalidation, where we can then set a relatively long cache time, but ensure that still no stale content is...

Check for a TTY or interactive terminal in PHP

Check for a TTY or interactive terminal in PHP
Many UNIX tools do different things if they are connected to an interactive terminal, also called a TTY. This can be handy for lots of reasons. I had a use case today that prompted me to find out how to do it in PHP.Here is the situation. We log errors to the PHP error log. We then have processes that monitor that error log and alert us about any uncaught exceptions or fatal errors very quickly so we can address issues. We also monitor non-fatal errors and alert on those on a less frequent schedule....

Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.

Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.
Article originally from rooJSolutions blogWell, for the first time in a very long while I had to post to the PHP core developers list last week,AunfortunatelyAthe result of which was not particulary usefull.The key issue was that 5.3.7 accidentally broke is_a() for a reasonably large number of users.AUnfortunatelyAthe fixup release 5.3.8 did not address this 'mistake', and after a rather fruitless exchange I gave up trying to persuade the group (most people on mailing list), that reverting the change was...

DZone.com: There's no reason not to switch to DocBlox

DZone.com: There's no reason not to switch to DocBlox
On DZone.com there's a recent post from Giorgio Sironi sharing his opinion on what should be your choice of automatic documentation generation tools in your PHP app, that there's no reason not to switch to DocBlox.Alessandro Nadalin signals these three options for Api documentation generation, the process of extracting Api informations on classes and methods from a folder full of source code: phpDocumentor, doxygen and DocBlox. A PHP tool, faster than doxygen in implementing new features, and actively...

Stefan Mischook's Blog: The 'Good Enough' Principle and PHP

Stefan Mischook's Blog: The 'Good Enough' Principle and PHP
In a new video blog post on his site today Stefan Mischook talks about PHP development and the concept of "good enough" that some developers can have a hard time with when trying to perfect code.One of the mistakes web developers make is to spend too much time perfecting the code base in a project. This waste too much time and ignores one very important fact: you need to get the software into the users hands as quickly as possible, so they can give you feedback.In his short video (stick with it, he talks...

Community News: PHP Benelux Opens Call for Papers for 2012 Conference

Community News: PHP Benelux Opens Call for Papers for 2012 Conference
The PHP Belenux conference has officially announced their Call for Papers for their event happening in January 2012 in Antwerp.With the kickoff of the conference site we are also opening the call for proposals (CFP), this is where you get to step up and take the stage. If you have any cool subject related to PHP which you would like to talk about, please fill out the CfP which will run from September 1st and closes on October 15th.Speakers will receive a package including a hotel stay, travel...

Latest PHP Tweets