PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 1801 to 1820 of 6889

Upgrade woes III: Suhosin and PHP 5.4.0

Upgrade woes III: Suhosin and PHP 5.4.0
To complete the trinity of infamy: There is no Suhosin for PHP 5.4.0 either. The patch is no longer bundled with distribution PHP. I have fired a mail to i0n1c about this but he seems to be in transit currently. The extension (0.9.33) does not compile with PHP 5.4.0 because of the copious API changes.A

PHPMaster.com: Continuous Integration (with Jenkins), Part 2

PHPMaster.com: Continuous Integration (with Jenkins), Part 2
Following up from his previous post about setting up PHP with Jenkins, J Armando Jeronymo is back with part two of the series - setting up an example project to show how the pieces fit together.In the first part of this article I presented the case for Continuous Integration. Now we'll install and set Jenkins up to monitor the automatic building of a simple demonstration PHP application. We'll begin with the demo project, then address Jenkins' installation, and finally set it up and watch it running.He...

Upgrade woes II: eAccelerator and PHP 5.4.0

Upgrade woes II: eAccelerator and PHP 5.4.0
The aoeAcceleratora project seems to be in hiatus. There haven't been any changes to the downloadable files since 2010 (version 0.9.6.1). With PHP 5.4.0 released and a major bump in the Zend API coming with it, I was not expecting eAccelerator 0.9.6.1 to compile. And sure enough, it fails quite soon into the make process.A eaccelerator.net is an Apache placeholder page, the SF site is not maintained anymore - time to let go. So, no eAccelerator for PHP 5.4.0 (FWIW, anyway...) and onwards. "Upgrade woes...

Upgrade woes I: Gallery3 and PHP 5.4.0

Upgrade woes I: Gallery3 and PHP 5.4.0
I recently upgraded this machine to Debian Wheezy (mainly to fix odd kernel crash issues that occured a couple times now) and this included a new PHP version. 5.4.0 has been stable for a month now, so I was eager to give it a spin.A

Community News: Latest PEAR Releases for 04.02.2012

Community News: Latest PEAR Releases for 04.02.2012
Latest PEAR Releases: OpenID 0.3.3 Crypt_DiffieHellman 0.2.6 MDB2_Driver_sqlsrv 1.5.0b4 XML_Parser2 0.1.0 I18N_UnicodeString 0.3.1 File_XSPF 0.3.1

Monitoring Symfony Applications

Monitoring Symfony Applications
For one of our projects we wanted to be able to check the system health once we go live. Our idea was to have a system that let us see the status of the services like MySQL or Memcached from the point of view of the application itself. Since our project was developed in PHP using the Symfony framework we decided to create a new Symfony bundle where we could implement this functionality. The bundle is called LiipMonitorBundle and can be obtained here. So one goal of our bundle was to do something more...

Some videos

Some videos
Over the years a few videos of my presentations and some interviews were published. I've collected the ones I found and put them on a single web page. The oldest is from 2009 the latests just from February this year. Enjoy. If you have another video which I missed: Please let me know!

A New Paradigm Rises to Save the Modern Web

A New Paradigm Rises to Save the Modern Web
A New Paradigm Rises to Save the Modern Web Programming on the web has come a long way since the wild-west early days of the 90s, and nowhere has this been more evident than in the PHP community. The earliest "apps" made with PHP were little more than some odd scripting bits that helped web pioneers and hobbyists to more easily maintain their html websites. At the turn of the century, larger, procedural PHP apps started to pop up that would eventually change the web as we knew it. Less than a decade...

Refulz Blog: Traits in PHP 5.4 - Why we need Traits

Refulz Blog: Traits in PHP 5.4 - Why we need Traits
On the Refulz blog today there's a new post about traits in PHP (recently introduced in PHP 5.,4) and why we need them in our development.Traits is one major addition to PHP. We read an introductory article about Traits in PHP 5.4. In the post, we saw an example code which only resembles single inheritance. So, what is the actual purpose of Traits and why do we need to use Traits in our code.They give a sample use case involving two types of clients, Business and Individual, and how you can use a single...

Lee Davis' Blog: FormFactory - Driving Doctrine 1.2 / 2.x Mappings into Zend_Form objects

Lee Davis' Blog: FormFactory - Driving Doctrine 1.2 / 2.x Mappings into Zend_Form objects
Lee Davis has a recent post to his blog showing how you can combine the Zend_Form component of the Zend Framework with Doctrine to help directly "drive" your forms.On a few of my previous projects I found myself creating more form classes than I'd like. And after the 30th one I figured there had to be a better way. I quickly realised that most of the elements within these forms shared similarities to the data type I would use on my database definitions. As I was using Doctrine at the time I figured I...

DZone.com: How to Set up Wordpress on EC2 Using Puppet and Git

DZone.com: How to Set up Wordpress on EC2 Using Puppet and Git
On DZone.com there's a new article from Daniel Ackerson showing how to set up a WordPress instance on an Amazon EC2 instance with the help of Puppet and git.Having started out on a Joyent appliance, migrating to Linode, and finally, to Amazon with a Bitnami stack, we noticed the common pain of manually configuring each of these environments. Bitnami caused us an even bigger headache by being very difficult to update (apt-get doesn't update the bitnami wrapped AMP stack). We decided to get full control of...

Rob Allen's Blog: Returning JSON using the Accept header in ZF2

Rob Allen's Blog: Returning JSON using the Accept header in ZF2
In a previous post Rob Allen showed how to return JSON data from a controller in a Zend Framework 2 application. In this new post he shows how to use the "Accepts" header from the client to do the same thing.Following yesterday's article on returning JSON from a ZF2 controller action, Lukas suggested that I should also demonstrate how to use the Accept header to get JSON. So this is how you do it!You'll need to create the JsonStrategy first, then you can return the ViewModel from the controller. If all...

Site News: Popular Posts for the Week of 03.30.2012

Site News: Popular Posts for the Week of 03.30.2012
Popular posts from PHPDeveloper.org for the past week:InfoWorld: Review: 2 PHP tools rise above the rest Monitor.us Blog: Website Performance: PHP Chris Morrell's Blog: Introducing Zit, an object-oriented dependency injection container James Fuller's Blog: Enforcing contracts in your PHP functions and methods Freek Lijten's Blog: SOLID - The S is for Single responsibility Alex Hudson's Blog: A (fond) farewell to Zend Framework PHPMaster.com: Continuous Integration (with Jenkins), Part 1 Site News:...

Tech Culture: More Legos and Less Punch Buggy

Tech Culture: More Legos and Less Punch Buggy
Recently I was a guest on a panel podcast hosted by Cal Evans that included Laura Thomson, Beth Tucker, and Anna Filina. It was entitled aoSexism in Techa and was a response to some of the recent goings-on in the tech community. It was a very fun podcast, and I encourage you to give it a listen. Even if you're tired of hearing about the issue, I promise there will be something there you can take away, because we didn't just rehash the same old conversations. While we talked about many things related to...

Lorna Mitchell's Blog: Using OAuth2 for Google APIs with PHP

Lorna Mitchell's Blog: Using OAuth2 for Google APIs with PHP
Lorna Mitchell has a new post to her blog today showing how to use the functionality provided by the pecl_http extension to make an OAuth2 connection to Google.I've written about Google and OAuth before, but that was OAuth v1.0, and they are introducing OAuth2 for their newer APIs; in this example I was identifying myself in order to use the Google Plus API. [...] OAuth 2 doesn't need an extension or any particular library as it doesn't have the signing component that OAuth 1 had, and OAuth 2 also has...

Phil Sturgeon's Blog: Hijacking Headers to Force Downloads

Phil Sturgeon's Blog: Hijacking Headers to Force Downloads
Phil Sturgeon shows how you can hijack headers in his latest post to force a download to the client (even on a hosted service like PagodaBox).The question [I posed on Twitter] was: "How to force a download of any file of any type, not on your server, without Apache tweaking? Images are displaying and need em to download." Essentially, I wanted to be able to link to a file that was not on the server in question and anywhere in the world, which could be of any size, any media type and could be potentially...

Community News: Win a phpDay/jsDay 2012 Ticket

Community News: Win a phpDay/jsDay 2012 Ticket
The jsDay/phpDay organizers have announced a contest to win a free ticket to this year's event(s), one for each conference:GrUSP is organising a tweet contest and its prizes will be two tickets, one for each conference. The contest will start today (March 29th) at 1pm CEST and will end April 1st at 7pm CEST.Anyone can enter - all you have to do is tweet a post with a few things: the "#grsup" hashtag, a mention of the twitter accounts for the events, a link to the conference site and something about the...

Nikita Popov's Blog: Understanding PHP's internal array implementation (Part 4)

Nikita Popov's Blog: Understanding PHP's internal array implementation (Part 4)
Nikita Popov has posted the fourth part of the "PHP's Source Code for PHP Developers" series he and Anthony Ferrara have been posting. In this latest article in the series, Nikita looks specifically at PHP's array implementation and how it's handed "behind the scenes".Welcome back to the fourth part of the "PHP's Source Code for PHP Developers" series, in which we'll cover how PHP arrays are internally represented and used throughout the code base.He starts with an obvious foundation: "everything's a...

Rob Allen's Blog: Returning JSON from a ZF2 controller action

Rob Allen's Blog: Returning JSON from a ZF2 controller action
In a new post to his blog Rob Allen shows how you can return JSON data directly back from a controller in a Zend Framework 2 application.The new view layer in Zend Framework 2 can be set up to return JSON rather than rendered HTML relatively easily. [...] Firstly we need to set up the view's JsonStrategy to check to a situation when returning JSON is required and then to render out JSON for us.This "JsonStrategy" does some of the hard work for you - detecting when the client is requesting a JSON response...

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:PHPBuilder.com: PHP Framework Review: DooPHP LearnComputer.com: Best PHP Books: My Top 5 Choices DZone.com: The PHP frameworks poll results Matthew Weier O'Phinney's Blog: Code Generation with ZendCodeGenerator David Müller's Blog: Parallel processing in PHP Eran Galperin's Blog: Database Optimization Techniques You Can Actually Use php|architect: Looking for a simpler MySQL library? Try MeekroDB Zend Developer Zone: Using the Plurk API...

Latest PHP Tweets