PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 2301 to 2320 of 6889

2011 Highlights

2011 Highlights
A new year begins, so for the ninth year in a row, I'm taking a moment to record, reflect, assess, and aim. Last year, I described 2010 as a landmark year, and it was. Analog, Mild Bunch, Brooklyn Beta, Mapalong, and PHP Advent. Even without factoring in conferences and such, it was a big year.All of 2010's accomplishments seem trivial when compared to 2011, because in May, Tegan was born.She's eight months old as I write this, and being a father still feels new. Life has changed, and I have a renewed...

Jani Hartikainen's Blog: Why does everything need to be integrated into a framework?

Jani Hartikainen's Blog: Why does everything need to be integrated into a framework?
In this new post to his blog Jani Hartikainen wonders if "everything needs to be integrated into a framework".There is occasionally people asking about things such as "Is there an integration for X in framework Y?" Then they are disappointed when it isn't, acting as if it's a really bad thing. But why do things need to be integrated to begin with?He points out that other frameworks (ex. Ruby on Rails) have a lot of things integrated, but he doesn't agree that this should be the standard. He suggests...

7php.com: Interview With Michelangelo van Dam - President Of PHPBenelux PHP Use

7php.com: Interview With Michelangelo van Dam - President Of PHPBenelux PHP Use
On 7php.com today there's a new community interview - this time it's with Michelangelo van Dam, the President of the PHPBenelux user group and well known PHP speaker/community advocate.In this edition, I talked with Michelangelo van Dam a senior PHP/Zend Framework consultant. This man really needs no introduction; he is so much of an invaluable asset to the PHP community. As per wefollow.com, he is ranked as the 4th (out of 113) most influential person on Twitter for #zendframework and as the 25th (out...

Cookies don't replace Sessions

Cookies don't replace Sessions
I've seen several instances where people have demonstrated the ease with which encrypted cookies can replace sessions within PHP. Michael Nitschinger wrote a piece recently demonstrating the switch with Lithium, while CodeIgniter does this by default (optionally encrypting). The problem is that while replacing sessions with cookies works, it introduces a few risks not present with native session support, and these risks tend to be under documented. Encryption is often viewed as a panacea for security...

Lorna Mitchell's Blog: Building A RESTful PHP Server: Routing the Request

Lorna Mitchell's Blog: Building A RESTful PHP Server: Routing the Request
Lorna Mitchell is back with a second installment in her "Building a RESTful PHP Server" series with this new post about handling and routing the incoming requests. (You can find the first part about working with the request here)This is the second part of a series, showing how you might write a RESTful API using PHP. This part covers the routing, autoloading, and controller code for the service, and follows on from the first installment which showed how to parse the incoming request to get all the...

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 10)

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 10)
Fabien Potencier has posted the tenth part of his series about making a custom framework based on the Symfony2 component set. In this latest article he focuses on using the HttpKernelInterface to add in some additional HTTP-related support.In the conclusion of the second part of this series, I've talked about one great benefit of using the Symfony2 components: the interoperability between all frameworks and applications using them. Let's do a big step towards this goal by making our framework implement...

NetTuts.com: Testing your PHP Codebase with EnhancePHP

NetTuts.com: Testing your PHP Codebase with EnhancePHP
On NetTuts.com today a new tutorial has been posted to help you test your applications and make it a simpler process using the EnhancePHP framework. EnhancePHP is a lightweight Open Source PHP unit testing framework with support for mocks and stubs.You know it; I know it. We should be testing our code more than we do. Part of the reason we don't, I think, is that we don't know exactly how. Well, I'm getting rid of that excuse today: I'm teaching you to test your PHP with the EnhancePHP framework.He shows...

PHPMaster.com: Rapid Application Development with CakePHP

PHPMaster.com: Rapid Application Development with CakePHP
On PHPMaster.com today there's a a new tutorial helping you take some first steps with CakePHP, a popular full-stack PHP framework, by Vito Tardia. ´╗┐CakePHP is a framework that provides a solid base for PHP development. It allows users at any skill level to rapidly develop robust web applications. [...] Personally, the reason why I prefer CakePHP over other PHP frameworks is its better support for console applications. CakePHP has a powerful console tool that can be customized to build applications for...

Community News: Latest PEAR Releases for 01.23.2012

Community News: Latest PEAR Releases for 01.23.2012
Latest PEAR Releases: Text_LanguageDetect 0.3.0

Create your own framework... on top of the Symfony2 Components (part 11)

Create your own framework... on top of the Symfony2 Components (part 11)
If you were to use our framework right now, you would probably have to add support for custom error messages. Right now, we have 404 and 500 error support but the responses are hardcoded in the framework itself. Making them customizable is easy enough though: dispatch a new event and listen to it. Doing it right means that the listener have to call a regular controller. But what if the error controller throws an exception? You will end up in an infinite loop. There should be an easier way, right? Enter...

Building A RESTful PHP Server: Routing the Request

Building A RESTful PHP Server: Routing the Request
This is the second part of a series, showing how you might write a RESTful API using PHP. This part covers the routing, autoloading, and controller code for the service, and follows on from the first installment which showed how to parse the incoming request to get all the information you need. Routing to Controllers In this setup, we'll have models, controllers and ... output handlers. It's not really a view, because all we will do is transform the data to a given output format. More on that later on -...

Intercepting class method invocations using metaclass programming in Python

Intercepting class method invocations using metaclass programming in Python
In Ruby, objects have a handy method called method_missing which allows one to handle method calls for methods that have not been defined. Most examples out there explain how to implement this in Python using __getattr__, however, none of them (and I mean none) explain how to intercept class method invocations using __metaclass__. And that's why I wrote this post. The function type is the built-in metaclass Python uses, it not only lets you know the type of an object, but also create classes on the fly....

Hide Adsense Ads for specific countries

Hide Adsense Ads for specific countries
I tried most of the Adsense plugins for Wordpress and none of them provides a function to hide advertisements for visitors from one or more countries. This Wordpress tutorial shows you how-to place an ad with the short-code feature in Wordpress and how-to handle dynamic placement with the most common cache plugins.Rating: 0.0/10 (0 votes cast)

RFC search provider

RFC search provider
In my work I have to look a lot at the IETF rfc documents, and I always have to jump through a bunch of hoops to find the document I want. Google often links me to the text version, and often I'm looking at obsoleted versions of documents when a new rfc has been published. Well, so I created a simple OpenSearch provider to solve this. It does exactly what I need, and I only tested in Firefox. If it's useful to anyone else, you can add the provider from rfcsearch.phpfogapp.com. It works with a simple...

Create your own framework... on top of the Symfony2 Components (part 10)

Create your own framework... on top of the Symfony2 Components (part 10)
In the conclusion of the second part of this series, I've talked about one great benefit of using the Symfony2 components: the interoperability between all frameworks and applications using them. Let's do a big step towards this goal by making our framework implement HttpKernelInterface: namespace Symfony\Component\HttpKernel; A interface HttpKernelInterface { /** * @return Response A Response instance */ function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true); } A...

Jakub Zalas' Blog: Mocking Symfony Container services in Behat scenarios with Mockery

Jakub Zalas' Blog: Mocking Symfony Container services in Behat scenarios with Mockery
Jakub Zalas has a recent post to his blog with a hint about how to test Symfony container services by mocking them (when testing with Behat) with the help of Mockery (and the PSSMockeryBundle).Mocking objects in unit tests is pretty straightforward as every object used in a test case is usually created in a scope of one test class. In functional tests it's a bit harder since we either don't have full control over objects being created or it's simply too laborious to mock half the framework. [...] We're...

Michael Nitschinger's Blog: Session Encryption with Lithium

Michael Nitschinger's Blog: Session Encryption with Lithium
Michael Nitschinger has a new post for the Lithium framework users out there - a quick tutorial about encrypting your session information with the new built in "Encrypt" strategy feature.If you check out the master branch, you can use the new Encrypt strategy to encrypt your session data automatically. This means that you can read and write session data in cleartext and they will be encrypted on the fly before getting stored (in a cookie, for example).You'll need the mcrypt extension installed for it to...

IBM developerWorks: Store datasets directly in shared memory with PHP

IBM developerWorks: Store datasets directly in shared memory with PHP
On the IBM developerWorks site today there's a new tutorial showing you how to store shared data directly to a shared memory space of your PHP application.Once created, and given proper permissions, other processes in the same machine can manipulate those segments by: read, write, and delete. This means that an application written in C can share information with an application written in other languages, such as Java or PHP. They can all share information, as long as they can access and understand that...

WebDevRadio: Episode 95:Jeff Carouth Interview from Zendcon 2011

WebDevRadio: Episode 95:Jeff Carouth Interview from Zendcon 2011
The WebDev Radio podcast has released their latest episode today - an interview with Jeff Carouth (@jcarouth) from last year's ZendCon conference:I chatted with Jeff Carouth about his day to day worklife as a PHP guy (among other things) at Texas A and M. Learn the A and M mascot name, Jeff's favorite design pattern, and more.You can listen to this latest episode either via the in-page player or by downloading the mp3 directly.

DZone.com: PHPUnit_Selenium

DZone.com: PHPUnit_Selenium
On DZone.com today Giorgio Sironi has a quick tutorial showing you how to set up and use the PHPUnit_Selenium component in the latest releases of the popular testing software.With the 1.2 release, PHPUnit_Selenium supports (basically) for the first time the Selenium 2 WebDriver API. While PHPUnit_Selenium already worked with Selenium 2, it did so only by using the Selenium 1 emulation included in the jar; now it provides an object-oriented API right natively supported in a base PHPUnit test case, shipped...

Latest PHP Tweets