PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 141 to 160 of 225

Michaelangelo van Dam' Blog: Windows Azure for PHP developers

Michaelangelo van Dam' Blog: Windows Azure for PHP developers
In a new post to his blog, Michelangelo van Dam starts off a series looking at Windows Azure for PHP developer, an introduction to the service and what sorts of features it has to offer.I'm a developer and I don't want to fiddle with setting up and maintaining an operating system, basically since I don't have the time for it. [...] I was completely sold when Josh Holmes came to Brussels in 2009 and told us more about what Windows Azure has to offer and how perfectly it is to build applications consuming...

Andrew Johnstone's Blog: Vagrant, Automating PHP/MySQL Installation with bash/slack

Andrew Johnstone's Blog: Vagrant, Automating PHP/MySQL Installation with bash/slack
Andrew Johnstone has a new post to his blog with a look at using Vagrant for continuous deployment of a PHP-based application.Vagrant is simply a wrapper around Virtualbox headless that allows for provisioning virtual machines with support for puppet, chef-solo, chef, and bash. This allows you to automate the deployment and sandboxing of development sites. Additional base box images can be found at vagrantbox.es.He walks you through the full process of setting up a first deployment - getting Vagrant...

Community News: Latest PEAR Releases for 12.12.2011

Community News: Latest PEAR Releases for 12.12.2011
Latest PEAR Releases: Net_DNS2 1.2.0 Validate_ES 0.6.1 Tree 0.3.5 Image_Barcode 1.1.2 Image_Barcode2 0.1.0 DB_ldap 1.2.1 Services_Weather 1.4.6 Services_Blogging 0.2.4 Text_Highlighter 0.7.2 Net_FTP 1.4.0a3 Numbers_Words 0.16.3 pearweb_qa 1.0.3 XML_FastCreate 1.0.4 XML_SVG 1.1.0 File_Sitemap 0.1.4 HTML_Progress2 2.4.2 I18N_UnicodeString 0.3.0 Validate_AR 0.1.2 HTTP_WebDAV_Client 1.0.2 Benchmark 1.2.9 PHP_DocBlockGenerator 1.1.2

Bake Cookies Like a Chef

Bake Cookies Like a Chef
It's Christmas time again. While you write the first lines of your shiny new authentication library, the smell of tasty cookies is slowly sneaking into your room. The few minutes until they are finished is a good time to lean back and think about cookiesa-anot the ones in the kitchen, but the cookies in your browser. Let's explore how to securely store data on the client side, and how to detect unwanted modifications.IngredientsNearly every web app needs some kind of authentication, and most use cookies...

Windows Azure for PHP developers

Windows Azure for PHP developers
Windows Azure for PHP developersIntroductionSince a couple of years the term "cloud" has moved from simplebuzz-word to real business opportunities that make a differencewithin the market. The technology behind "cloud" is not new aswe've grown accustomed to server clusters, distributed datacentersand separation of responsibilities, but the "cloud" offerseveryone the opportunity to scale and not just the companies whohave a huge cash reserve to purchase another rack with servers.The strange thing is that...

Check whether your web server is correctly configured

Check whether your web server is correctly configured
Last year Zone-H reported a record number of 1.5 million websites defacements. 1 million of those websites where running Apache. When it comes to configuring a web server, some people tend to turn everything on by default. Developers are happy because the functionality that they wanted is available without any extra configuration, and there is a reduction in support calls due to functionality not working out-of-the-box. This has proven to be a major source of problems for security in general. A web...

11.12.: Migrate to html5!

11.12.: Migrate to html5!
html5 is one of the hottest buzzwords in the web and everyone is using or talking about it. Google is ahead everyone else for sure with Google Docs, their web based office suite and with Chrome OS, an operating system which only needs a browser (from the userA's view). But also Facebook, they working on their own application platform codenamed ASpartacusA" is based on html5. Even classic software companies like Adobe and Microsoft are joining the competition: Microsofts upcoming WIndows 8...

Out with the Old

Out with the Old
Jetpacks. Flying cars. Databases able to handle infinite amounts of data. Breakthrough after breakthrough, computer engineering forges a shiny future, and yeta One of the first interview questions I was asked was to describe, in my own words, the difference between an inner join and an outer join. It is a question I have adopted, and I now ask it to every candidate. Over time, I've been interviewing more and more senior developers, most of whom know the correct answer, so this question has become a way...

Better Object-Oriented Arrays

Better Object-Oriented Arrays
I've been working on developer-facing software and SDKs in PHP for nearly a decade, and through the experience of supporting these developers, I've learned something interesting about the PHP community at-large. The majority of PHP developers have a very good understanding of native types (e.g., strings, arrays, integers, booleans). Since they're the lowest common denominators of the PHP language, it's generally pretty easy for developers to understand these types. But the moment you introduce concepts...

Nelm.io Blog: Composer: Part 1 - What & Why

Nelm.io Blog: Composer: Part 1 - What & Why
On the Nelm.io blog today there's a new post (part one of a series) about using Composer and Packagist to manage PHP applications as packages.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.The briefly explains what the tool(s) do and shows...

PHPBuilder.com: PHP Arrays: Advanced Iteration and Manipulation

PHPBuilder.com: PHP Arrays: Advanced Iteration and Manipulation
In this new tutorial from PHPBuilder.com, Jason Gilmore shows you some of the more advanced things you can do with arrays in PHP (specifically in the areas of iterating through them and manipulating their contents).Sporting more than 70 native array-related functions, PHP's array manipulation capabilities have long been one of the language's most attractive features. [...] There are however many array-related tasks which ask a bit more of the developer than merely knowing what part of the manual one...

Devshed: Building a PHP ORM: Deploying a Blog

Devshed: Building a PHP ORM: Deploying a Blog
DevShed concludes their three-part series about building an ORM in PHP with this latest article. It introduces the idea of dependency injection into the mix, showing how it can be used in the relationships between entities.if you've already read the two installments that precede this one, it's probable that you're familiar with the inner workings of this sample ORM. In those chapters I implemented the ORM's data access and mapping layers, along with a simple domain model. To be frank, the development of...

Brian Swan's Blog: Running PHPUnit in Windows Azure

Brian Swan's Blog: Running PHPUnit in Windows Azure
Brian Swan has a recent post to his MSDN blog about setting up PHPUnit for testing on a Windows Azure platform (as installed via PEAR).After figuring out how to run PHPUnit from the command line in a Windows Azure instance, I did find that a bit more configuration work than I anticipated was necessary. I'm not 100% certain that this is the best way to run PHPUnit in Windows Azure, but it is one way. I'd be interested in hearing better ways to do this.He breaks it up into a few different steps: Building...

.EU PHP company knowledge exchange

.EU PHP company knowledge exchange
For now I am limiting this vision to just European companies. But the idea that is materializing is for PHP companies to train each other on technology or processes related to their daily business. Liip today received a remote training by Konstantin from KnpLabs on Behat. In January David will give a training for KnpLabs on behalf of Liip about the Symfony2 CMF. For now this will happen remote (we still need to figure out a better setup), because this all happened fairly short notice after talking about...

From Subversion to GIT (and beyond!)

From Subversion to GIT (and beyond!)
Here's a more or less simple way to migrate from Subversion to GIT(hub), this includes mapping commits and tags and what not! AuthorsIf multiple people congtributed to your project, this is probably the toughest part. If you're not migration from let's say Google Code but PHP's Subversion repository, then it's really pretty simple indeed: the username is the email address.I found a nifty bash script to get it done (and adjusted it a little bit): #!/usr/bin/env bash authors=$(svn log -q | grep -e '^r' |...

VG Tech Blog: Mocking the File System Using PHPUnit and vfsStream

VG Tech Blog: Mocking the File System Using PHPUnit and vfsStream
On the VG Tech blog today there's another post related to unit testing (here's one from before) but this time they're talking about mocking the filesystem with vfsStream, a powerful tool that lets you interact with PHP streams as a virtual file system.This article is about how to mock the file system when writing unit tests, and it will be rather code-heavy. [...] PHPUnit is the de-facto standard for unit testing in PHP projects, and this is what we will be using together with vfsStream in this...

Josh Adell's Blog: Codeworks '11 Raleigh Rundown

Josh Adell's Blog: Codeworks '11 Raleigh Rundown
Josh Adell recently attended to Raleigh, North Carolina arm of the CodeWorks conference and has posted about some of his experience there (and specifics on each presentation).I had a great time at CodeWorks 2011 in Raleigh this week, put on by the great folks at php|architect. Here is a rundown of the presentations, with some of my thoughts. [...] To all the conference speakers, organizers and attendees, I want to say thank you for a fun and educational experience.The sessions for this stop on the tour...

Site News: Popular Posts for the Week of 12.09.2011

Site News: Popular Posts for the Week of 12.09.2011
Popular posts from PHPDeveloper.org for the past week:Joshua Thijssen's Blog: Compatible code: starting with symfony2 NetTuts.com: Wrangling with the Facebook Graph API Jake Smith's Blog: Callback Filter Iterator in PHP 5.3/5.4 DZone.com: Codeigniter and Object-Oriented PHP: Two Guides PHPClasses.org: Lately in PHP Podcast Episode 18 - The Debate on Remote Work for Web Developers DevArticles.com: Singletons in PHP Elizabeth Naramore's Blog: PHP Internals, Let's Chat About the Future! Reddit.com: Should I...

Merry Error Handling

Merry Error Handling
PHP does not enjoy the same consistency in error (and exception) handling as other languages, mostly due to historical reasons and the lack of a formal specification. But, there are things that you can do to make error handling saner and easier to maintain. PHP has multiple categories of errors and exceptions, each with its own handling semantics within the PHP interpreter. For our purposes, we can classify these into the following categories: Fatal errors, like out-of-memory and syntax errors,...

Wokay.com: 12+ Tutorials for creating PHP5 MVC Framework

Wokay.com: 12+ Tutorials for creating PHP5 MVC Framework
If you've ever wanted to start from scratch and wanted to build your own PHP framework, you might want to take a look at this list. It's a set of thirteen good resources to help you get started and introduce you to some of the basic framework concepts.Frameworks serve as basics for developing a theory, condition and design in broader sense but in the world of web site development, framework means applications that help you in creating something new or something most popular around the web. We have listed...