PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 161 to 180 of 225

09.12. 10 good reasons why to learn a css meta language like sass or less

09.12. 10 good reasons why to learn a css meta language like sass or less
There's a bunch of really usefull online css tools like css code shrinkers, validators, sprite generators, px to em calculators just to name a few. But what I like the best is SASS and LESS. Continue reading "09.12. 10 good reasons why to learn a css meta language like sass or less"

Composer: Part 1 - What & Why

Composer: Part 1 - What & Why
You may have heard about Composer and Packagist lately. In short, Composer is a new package manager for PHP libraries. Quite a few people have been complaining about the lack of information, or just seemed confused as to what it was, or why the hell we would do such a thing. This is my attempt at clarifying things. This second part of this post, tentatively titled Use Cases, will be out next week if time allows.What is it?The Composer ecosystem is made of two main parts, both are available on GitHub. The...

PHPMaster.com: Untangling MVC with CodeIgniter

PHPMaster.com: Untangling MVC with CodeIgniter
On PHPMaster.com today there's a new tutorial that wants to help you "untangle MVC" with the help of the CodeIgniter framework. The tutorial is an introduction to the Model/View/Controller design pattern and how it's implemented in this popular framework.If you want to develop applications with sell-structured, readable code that you can quickly diagnose problems in, then MVC is for you. In this article I'll untangle the mysteries of MVC for you using CodeIgniter, a PHP framework based on the MVC...

Ilia Alshanetsky's Blog: PHP's Output Buffering

Ilia Alshanetsky's Blog: PHP's Output Buffering
In a new post to his blog Ilia Alshanetsky takes a look at PHP's output buffering feature and some interesting things he found when testing some recent code (hint: it has to do with PHP's "interesting" management of the buffer).While profiling our application I came across a a rather strange memory usage by the ob_start() function. We do use ob_start() quite a bit to defer output of data, which is a common thing in many applications. What was unusual is that 16 calls to ob_start() up chewing through...

VG Tech Blog: Unit Testing with Streams in PHP

VG Tech Blog: Unit Testing with Streams in PHP
On the VG Tech blog today there's a new post from André Roaldseth about using PHPUnit to test PHP streams, basing the assertions on the data rather than the functionality itself.Using the memory/temporary stream provided by php:// stream wrapper you can create a stream with read and write access directly to RAM or to a temporary file [using "php://memory"]. This gives you the possibilty to write unit tests that does not rely on a specific file, resource or stream, but rather on data provided by the test...

Volker Dusch's Blog: Book Review: PHP Masters

Volker Dusch's Blog: Book Review: PHP Masters
Volker Dusch has posted his review of a recent release from SitePoint Press - "PHP Masters - Write Cutting Edge Code".The book is solid, well written and covers the most important topics that people need to think about when starting off with PHP. It is one of the few PHP book on the market that you can pass on to your trainees/junior developers without having to "unteach" them half of the taught bad practices afterwards. This is a great achievement in my mind and I'd definitely recommend checking it out...

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:PHP North West: PHPNW10: Harrie Verveer: Database version control without pain LearnComputer.com: PHP Interview Questions and Tips PHP.net: PHP versions 5.2.15 and 5.3.4 Released! Jose Anthony's Blog: PHP Code review checklist Joshua Thijssen's Blog: Top-5 certifications for every PHP programmer Court Ewing's Blog: A Simple Alternative to Global Registry Dependency Insidesigns Blog: Create a scalable private messaging application using PHP5...

Integration Testing

Integration Testing
At some point in our respective programming careers, most of us have heard that Test-Driven Development (TDD) is what we should be doing. The TDD thesis is that we write tests (known as unit tests) that consume the functions, classes, and interfaces of the code that we intend to write before we write it, and that doing this improves the quality of our code due to increased foresight and better ability to catch a specific type of bug known as a regression, which is the technical term your boss uses for...

PHP's Output Buffering

PHP's Output Buffering
While profiling our application I came across a a rather strange memory usage by the ob_start() function. We do use ob_start() quite a bit to defer output of data, which is a common thing in many applications. What was unusual is that 16 calls to ob_start() up chewing through almost 700kb of memory, given that the data being buffered rarely exceeds 1-2kb, this was quite unusual. I started looking at the C code of the ob_start() function and found this interesting bit of code inside...

Community News: php|archtect Announces php|tek 2012 (and Call for Papers)

Community News: php|archtect Announces php|tek 2012 (and Call for Papers)
php|architect has officially announced their php|tek conference for 2012 and have opened their Call for Papers:The simple answer is to the question "What topics are you looking for" is: anything that helps inspire PHP developers to do their jobs better, more easily, and more efficiently. [...] Most importantly, we do not necessarily look for talks that are about PHP. Some of the most successful presentations over the years have been on products built on PHP (like frameworks) and on technologies that are...

Reddit.com: Should I be doing just about everything using REST?

Reddit.com: Should I be doing just about everything using REST?
In this new post to Reddit.com, the question is asked "Should I be doing just about everything using REST?" - wondering if their new applications should all sit on top of a web service for their functionality.I'm pretty new to server-side programming, and actually started out with Python/mod-wsgi. From the ground up, mod-wsgi made a lot of sense. The server gets a request, you route the request. It feels like that's where I should start, so that's pretty much what I'm trying to create with PHP (a REST...

Community News: Packing more PHP News in your day with PHP Quick Fix

Community News: Packing more PHP News in your day with PHP Quick Fix
If you're a regular reader of PHPDeveloper.org, you know that there's a few articles posted here (almost) daily about what's happening in the PHP world. Unfortunately, this only scratches the surface of the quality content that's out there. In an effort to provide more PHP goodness to the community as a whole, PHP Quick Fix has been launched - a service linking to stories that don't make it on PHPDeveloper.org.All of the stories on PHP Quick Fix (you can also follow it on twitter) are still hand-selected...

Mayflower Blog: Advent Calendar Articles

Mayflower Blog: Advent Calendar Articles
Over on the Mayflower blog, the group has set up their own series of "advent calendar" posts on a wide range of topics. Here's their list (updated as new items are posted): Cloud Transformation Model PHP 5.3 Features in Real Life (German) Setting up a QA environment for Javascript Generating PDFs in PHP (German) Doctrine 2 Doctrine 2 - Zend Framework Integration One-click Deployment They're a mix of English and German articles, but with a handy translator you can follow along pretty well.

Mrinmoy Ghoshal's Blog: Concept of Strings:PHP

Mrinmoy Ghoshal's Blog: Concept of Strings:PHP
If you're new to the PHP language and are looking for the full scoop on working with the string datatype, look no further than this new post from Mrinmoy Ghoshal. It's an excellent (and quite complete) resource for just about everything involving strings in PHP.A string is series of characters, where a character is the same as a byte. This means that PHP only supports a 256-character set, and hence does not offer native Unicode support. See details of the string type.The tutorial is broken up into...

Community News: PHPFog Gifts Free-for-Life Applications

Community News: PHPFog Gifts Free-for-Life Applications
PHPFog, the PHP-centric platform as a service has made a new post to this blog about two new "gifts" they're providing to developers:I want to thank you for your interest in PHP Fog. Thanks to you and tens of thousands of developers like you, we have grown massively in the last year and a half. As a sign of my gratitude, I'd like to give you two free gifts.Their gifts to the community are a conversion of the 6 month applications over to a free-for-life product and you can now deploy three of these "free...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
c_xml APC_handler Simple Image Captcha Class JavaScript in PHP Login with linux passwd or shadow Word Solver

My Mayflower Advent calendar article

My Mayflower Advent calendar article
This year some folks at Mayflower decided to make an advent calendar with a daily blog post, and today was my turn to write. So here's One-click Deployment (with Jenkins). Comments are welcome over there or via twitter to @anderiasch

The Easy Way of Running Your MySQL Applications in the Cloud

The Easy Way of Running Your MySQL Applications in the Cloud
The Easy Way of Running Your MySQL Applications in the Cloud By Avigail Ofer More and more sites are moving to cloud hosting services to assure a smooth growth path, as the sites require more servers to handle the audience growth. As a developer, you want to ensure that your database is running smoothly in the cloud, but you do not want to be bogged down by tedious operations and everything else that goes into it, like the manual configuration, optimization, maintenance and development. Read this...

Twilio in Two Minutes

Twilio in Two Minutes
I love Twilio. If you're not familiar with Twilio and the amazing voice and text messaging stuff you can do with it, you're in luck! I'm going to show you a few things you can try in a matter of minutes. An emergency line for the kidsFor $2 per month, I set up an emergency toll-free phone number for my kids. They can call this number from any phone, anywhere in the US, for free. The toll-free number will ring my phone, then their dad's phone, then their grandparents' phone, and if all else fails, then a...

My PHP Advent article

My PHP Advent article
My PHP Advent article just got published. It's a list of best practices around dealing with dates and times in PHP. Have a read and tell me what you think. Also, be sure to follow @phpadvent or subscribe.