PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

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

Google Chrome vs Firefox: Chrome is Catching Up on Features for Web Developers

Google Chrome vs Firefox: Chrome is Catching Up on Features for Web Developers
Google Chrome vs Firefox: Chrome is Catching Up on Features for Web Developers By Manuel Lemos Google Chrome browser seems to have practically reached the leadership of the market share of browsers among the generality of the users. However, Firefox still leads in the preference of the majority of Web developers. This article is a follow-up of another written last year entitled "Top 10 Reasons Why Firefox is still Better than Chrome for Web Development". This time it includes a point by point response...

PHPMaster.com: Baking Cookies in PHP

PHPMaster.com: Baking Cookies in PHP
On PHPMaster.com there's a new tutorial about working with cookies in PHP applications - an introductory look at what they are, how to set them and how to read their values.Have you ever wondered that in spite of HTTP being a stateless protocol, when you log in to a website and buy stuff and checkout how the server can identify you uniquely? You might wonder if HTTP is stateless but your state is maintained through your interactions, isn't this a contradiction? Welcome to world of cookies (not the ones...

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:Devshed: Simple and Secure PHP Login Script Symfony Blog: Symfony2: The Roadmap to Final Robert Basic's Blog: Helping out with Zend Framework 2 Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.7 Lion Sasa Stamenkovic's Blog: Create Kick-ass Website in no Time with Silex PHPBuilder.com: Build Blazing Fast PHP Websites with Memcached Distributed Caching Ibuildings techPortal: Behavior Driven Development in PHP With Behat Anthony Wlodarskis...

Aim Higher!

Aim Higher!
At the start of the month, I was on a panel at Unified Diff (which, if you're in the South Wales area, is well worth your time going to every month), and the last question we had is well worth expanding into a blog post. We were asked what each of us would do with a failing developer, and everyone was taken aback by my unequivocal answer: I'd fire them. After some back and forth between us (which carried on over a pint afterwards), my fellow panelists concluded that I seemed to be able to afford higher...

We Love PHP Blog: Using V8 Javascript engine as a PHP extension

We Love PHP Blog: Using V8 Javascript engine as a PHP extension
From the "Web Love PHP" blog there's a new post showing how to use the V8 Javascript engine as a PHP extension in your application.Just got to something described as: This extension embeds the V8 Javascript Engine into PHP. It is called v8js and the documentation is already available on php.net, examples and the sources are here. V8 is known to work well in browsers and webservers like node.js, but does it work inside PHP? YES!They show how to get it installed (on Ubuntu) via a PECL install and a test...

BinaryTides.com: Javascript style object literals in PHP

BinaryTides.com: Javascript style object literals in PHP
On the BinaryTides.com site there's a recent post for those familiar with Javascript and wanting to have the same kind of object-style literals in PHP.As similar thing [to Javascript object literals] can be done in PHP using anonymous functions (since 5.3) [...] Since version 5.3 Php added support for closures and that feature has been used above to create javascript style object literals. The use(&$a) expression makes the variable $a available inside the function happy.Code snippets are included showing...

Community News: PHP Benchmarks Compared to Several Languages

Community News: PHP Benchmarks Compared to Several Languages
Ariz Jacinto has pointed out some results from a recent benchmarking "game" that compares the performance of several languages against each other in overall speed.Here's the link to the Computer Language Benchmark Game as of July 15, 2012. You'll see that the median speed of PHP is slightly faster than Python 3 and Ruby 1.9 on x64 Ubuntu/IntelQ6600 Quad-core machine. You can visit the results page and turn on and off various languages to get the updated results in the chart. You can also limit it down...

DAOs and MySQL - A Response

DAOs and MySQL - A Response
In response to last week's ask for questions, I received a number of questions that I'd like to address. Since it would only do the question justice to have a dedicated post for each question. So I'm going to try to do one post per week on a user-submitted question (probably on Wednesday, but no promises). This week's question is a rather abstract one:I've been learning a lot about service layers and managers and domain objects and one thing really confuses me. Why is MySQL being turned into a...

Stefan Koopmanschap: Data migration with Doctrine2

Stefan Koopmanschap: Data migration with Doctrine2
In this latest post to his site Stefan Koopmanschap shares a solution he's found to migrating data with Doctrine2 from an existing structure.A project that I'm working on right now required me to migrate data from the existing database to the new database and database structure. Since the application is built on top of Symfony2, I decided to write a Command that would take care of the migration. I ran into an issue though: Doctrine2 insisted on creating new IDs where I wanted to keep the old one. The...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
PTM MediaFire API PHP Library Bindable Simple Data Grid Sencryption A MySQL Database Class dbf Manager LibWP EDictionary Map Builder

Data migration with Doctrine2

Data migration with Doctrine2
A project that I'm working on right now required me to migrate data from the existing database to the new database and database structure. Since the application is built on top of Symfony2, I decided to write a Command that would take care of the migration. I ran into an issue though: Doctrine2 insisted on creating new IDs where I wanted to keep the old one. The solution turned out to be really simple.

OSX vs. Thinkpad

OSX vs. Thinkpad
So in the summer of 2007 I switched from Windows to OSX which also meant switching from Thinkpad to Macbook Pro. While there were some details I liked on the Macbook Pro, like the at the time quite innovative magnetic design on the lid latch, overall I was sad to not be able to use a Thinkpad. So it also came that my first Macbook Pro had to repaired 3 times in total. Despite having bought the insanely expensive AppleCare this meant having to drop off my laptop for several days (usually 5 business days)...

BinaryTides.com: PHP Socket programming tutorial

BinaryTides.com: PHP Socket programming tutorial
On the BinaryTides.com site there's a recent tutorial showing you how to effectively use sockets in your PHP applications, complete with incoming and outgoing examples.This is a quick guide/tutorial to learning socket programming in php. Socket programming php is very similar to C. Most functions are similar in names, parameters and output. However unlike C, socket programs written in php would run the same way on any os that has php installed. So the code does not need any platform specific changes...

Voices of the ElePHPant Podcast: Interview with Michelangelo van Dam

Voices of the ElePHPant Podcast: Interview with Michelangelo van Dam
The Voices of the ElePHPant podcast has released their latest episode - an interview with Michelangelo van Dam, an organizer of PHPBenelux and well-known speaker.Cal's three questions have to do with his user group and conference experience: You're a leader of the PHPBenelux User Group that moves around a lot, tell us some about how that works Tell us some about he PHPBelenux conference and some of the things you've learned about running an event like that Why should someone be part of the PHP...

DZone.com: Refactoring away from spaghetti PHP

DZone.com: Refactoring away from spaghetti PHP
In this new post to DZone.com, Giorgio Sironi walks you through a few steps to consider when trying to refactor some of the spaghetti code out of your application.Sometimes you have to take a step back from discussions on coupling, cohesion, patterns and katas to give some training to the ones of us that have a procedural mindset. With this article I hope to provide some initial tips for the members of the PHP community that are ready to abandon the concept of the OneSingleProcedure(TM) to embrace the...

PHPMaster.com: Using YAML in Your PHP Projects

PHPMaster.com: Using YAML in Your PHP Projects
On PHPMaster.com today there's a new tutorial showing you how you can use YAML documents on your applications ("YAML Ain't Markup Language") for configuration files.Test fixtures, configuration files, and log files all need to be both human and machine readable. YAML (YAML Ain't Markup Language) is a less-verbose data serialization format than XML and has become a popular format among software developers mainly because it is human-readable. YAML files are simply text files that contain data written...

Anthony Ferrara: What Generators Can Do For You

Anthony Ferrara: What Generators Can Do For You
Anthony Ferarra has a new post looking at using generators in your code (as proposed here). He introduces the idea behind them and shows both a simple and more complex example of their use.The concept of generators was recently proposed for addition in PHP's core (Possibly for 5.5.0). While I believe that this is a great tool, it appears that many PHP developers aren't familiar with the concept of generators. So I thought I would take a little time and explain some of how it works, and how it can be used...

Community News: Latest PECL Releases for 07.24.2012

Community News: Latest PECL Releases for 07.24.2012
Latest PECL Releases: timezonedb 2012.4 APC 3.1.11 mongo 1.2.11 amqp 1.0.4

Taking a breather to sort out my future

Taking a breather to sort out my future
So when you are a programmer life is good. You can kind of work from where ever you want (home/office/nature ..), constantly get to work on new and exciting stuff (well if you want that is) and you can choose from an entire planet offering you jobs that by and large pay pretty well. Personally I have been additionally very lucky in having found Liip. Now this sentence sounds a lot like the beginning of a note on my immediate departure from Liip, where I thank them and then state that I needed a new...

Create.js hackathon in Berlin

Create.js hackathon in Berlin
Last week we at IKS organized a two-day hackathon for developers interested in Create.js, VIE, and in new tools for editing websites semantically. The original agenda for the event can be found from the event's wiki page, and I believe we got it covered quite well. I've been to quite a lot of hackfests, and usually the first day is mostly spent by people arriving, figuring out the WiFi setup, and getting to know the development tools. This time was different: people jumped straight into the code and...