PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 121 to 140 of 240

Josh Holmes' Blog: Rev it up with PHP and IIS

Josh Holmes' Blog: Rev it up with PHP and IIS
In a new post to his blog Josh Holmes has written up a summary of a talk he and Mark Brown (also of Microsoft) gave about running PHP on IIS and how good the performance is. The summary is a result of their session at this year's Zend/PHP Conference.Mark Brown and I did a talk at ZendCon last week on how well PHP runs in IIS and more specifically, some things that you should do in order to make it run really well on IIS.They looked back at the history between IIS and PHP - a bit rocky at times - and how,...

DZone.com: Zend Application demystified

DZone.com: Zend Application demystified
Giorgio Sironi has a new post to DZone.com today looking at the Zend_Application component of the Zend Framework, hoping to shed some light on how you can use it for your applications.While using single components of Zend Framework is as simple as including the source files, the MVC machine is quite more difficult to set up and the approach of organizing the boostrap via reusable, segregated application resources lets you manage the process without screaming for its complexity. However, it's not so...

How-to show popular posts on your WordPress blog?

How-to show popular posts on your WordPress blog?
Yesterday I replaced my list of current PHP articles on this blog with a list of popular articles. I'm sure it's possible in WordPress to get those list if you count the number of comments, but actually I was looking for solution based on real traffic. Since I'm using WordPress.com Stats, I would like to use the rankings generated by this service or plugin. Searching Google, I found some widget called aoWordPress.com Stats: Top Posts Widgeta which works out of the box (if like to use a widget). In my...

Optimising HMVC Web Applications for Performance

Optimising HMVC Web Applications for Performance
In an earlier article written for techPortal, Scaling Web Applications With HMVC, the Hierarchical-Model-View-Controller architecture was explored. Using an example web application called Gazouillement and the Kohana Framework, the article investigated how structuring code using an HMVC methodology can help overcome some common scalability challenges in complex software architectures. The article concluded by demonstrating the relative simplicity of horizontally scaling the HMVC Gazouillement example...

Community News: Latest PECL Releases for 11.16.2010

Community News: Latest PECL Releases for 11.16.2010
Latest PECL Releases: ssdeep 1.0.2 oci8 1.4.4 bbcode 1.0.3b1

Composite Rowsets For Many-To-Many Relationships Via Zend_Db_Table

Composite Rowsets For Many-To-Many Relationships Via Zend_Db_Table
One of the hardest problems to solve when developing an ORM of any complexity is in deciding how to handle the retrieval of rows that satisfy a many-to-many relationship, also known as a M:N relationship. From the perspective of an object, there is no such thing as a many to many relationship. There are only two relationships an object understands. The first is the relationship of itself to another object, which is a one to one (1:1) relationship. The second is the relationship of itself to a group of...

Announcing the November 2010 Zend Framework Bug-Hunt

Announcing the November 2010 Zend Framework Bug-Hunt
For those who haven't put the reoccurring event in their calendar, this announcement is for you: Zend Framework Monthly Bug-hunt is here again! This Thursday, Friday and Saturday of November (the 18th, 19th and 20th 2010), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month, we organize the community to help reduce the number of open issues reported against the framework.

Rob Allen's Blog: Validating UK Postcodes

Rob Allen's Blog: Validating UK Postcodes
Rob Allen has shared a bit of code he's put together to help with validating UK postal codes (since the functionality in Zend_Validate doesn't cooperate), so he extended the main Zend_Validate_PostCode with his own validator.It's easy enough to add a filter to remove the space, but I'm a little worried that when (and if) it gets fixed, will the fixed version Zend_Validate_PostCode then fail to validate postcodes without the space? In theory it should as the space is part of the spec. I'd hate my code to...

Giorgio Sironi's Blog: The PHPUnit Refcard is out

Giorgio Sironi's Blog: The PHPUnit Refcard is out
Unit testing fans will be happy to know that a Refcard from DZone has been published (authored by Giorgio Sironi) so you can keep PHPUnit at your fingertips.Do you occasionally forget the syntax for creating Mocks and Stubs in PHPUnit? Or wonder how a command line option work? Or if there is an assertion that may be perfect for the test you're writing? Then this Refcard can help you. The Refcard is a PDF cheatsheet of 6 pages, which interleaves code samples with explaining test and sample outputs....

Artur Ejsmont's Blog: HTTP response splitting and mail headers splitting attacks

Artur Ejsmont's Blog: HTTP response splitting and mail headers splitting attacks
In a recent post to his blog Artur Ejsmont looks at an attack that could potentially leave a hole open in your PHP-based application for a cross-site scripting (XSS) attack - HTTP response splitting (mail headers too).There are two similar security issues both taken care of by Suhosin patch and strict escaping/encoding rules. They both relate to injecting new lines into headers of network protocols. They are not very well known and i think its worth mentioning it. HTTP response splitting is a web based...

PHPBuilder.com: Use the PHP Filter Extension to Validate User Data

PHPBuilder.com: Use the PHP Filter Extension to Validate User Data
On PHPBuilder.com there's a recent tutorial posted abut using the filter extension (now a part of the PHP core since 5.2) to filter and validate incoming user data.With so much potential for distraction, it's no wonder that developers continue to fall victim to the very same security gaffes that have afflicted the community for well over a decade. Notably, failure to properly validate user input remains the single most serious security issue, with several of the Open Web Application Security Project's...

Alexei Shuga's Blog: On passing Zend PHP 5.3 exam

Alexei Shuga's Blog: On passing Zend PHP 5.3 exam
After recently taking the Zend PHP 5.3 Certification exam, Alexei Shuga has decided to share some of his thoughts on his experience to hopefully give other developers out there a better idea of what was involved.First of all, the exam is quite complex, yet it's pretty much easy to pass if you're writing PHP code using latest additions like namespaces, late static binding or lambda functions. Even if you do not use these techniques in your code, but you're aware of them and saw PHP syntax for those...

Community News: Latest PEAR Releases for 11.15.2010

Community News: Latest PEAR Releases for 11.15.2010
Latest PEAR Releases: Net_IPv6 1.1.0

NoSQL and Riak

NoSQL and Riak
I talk with a lot of people about NoSQL. I've been following it pretty closely for about 3 years now. One of the things I often tell people who are trying to wrap their heads around the concepts of NoSQL and what all of the data stores mean is to go search for Justin Sheehy and his NoSQL East Talk. Then it dawned on me, why don't I just embed the video on my site? Makes it super easy for people to find (travisswicegood.com/tags/riak) and I don't have to go searching for it.So, here's what I consider one...

ZendCasts.com: Unit Testing Action Helpers

ZendCasts.com: Unit Testing Action Helpers
On the ZendCasts.com site today there's a new screencast posted showing you how to use Zend_Test to unit test the action helpers in your Zend Framework application.A look at how action helpers function and effective ways of unit testing them.The Zend_Test allows for simpler integration of PHPUnit tests with Zend Framework-based applications. He shows how to set up a bootstrap file to initialize the framework, create a simple test on his "Signup" action helper and output the code coverage report to help...

Anna Filina's Blog: Developer Community: Where to Start? - Part 1

Anna Filina's Blog: Developer Community: Where to Start? - Part 1
On her blog today Anna Filina takes a look at developer communities (the first part of a series) - what they are, seeking them out and how you can make your own contributions.So you have never been involved with a developer community before. What is a community? How do you find one? What can the community do for you? There are as many answers as there are communities. Everybody runs it in his own way.She talks about communities that share passions, ones that are based on a certain area (city, state,...

NETTUTS.com: A Beginner's Introduction to HTTP and REST

NETTUTS.com: A Beginner's Introduction to HTTP and REST
On NETTUTS.com today there's a great tutorial that wants to teach you, the beginner, all about REST and how it works with the HTTP request and response methods to handle web service requests. A sample PHP application is also included to help you get a better feel for it.The HyperText Transfer Protocol (HTTP) is the life of the Web. It's used every time you transfer a document, or make an AJAX request. But HTTP is a relative unknown among web developers. This introduction will demonstrate how the set of...

Josh Holmes' Blog: ASP.NET and PHP On IIS Together

Josh Holmes' Blog: ASP.NET and PHP On IIS Together
Happen to need both ASP.NET and PHP running on the same IIS server? Josh Holmes (and Mark Brown) have you covered with this new presentation posted to Josh's blog.I got a question the other day about running both ASP.NET and PHP on the same server and whether or not it works. The short answer I gave is "Yes". The longer answer, I'm going to give here. In point of fact, both ASP.NET and PHP work really well on the instance of IIS. They can't share session state but otherwise it's a very peaceful...

Matthew Weier O'Phinney's Blog: Introducing the ZF2 Plugin Broker

Matthew Weier O'Phinney's Blog: Introducing the ZF2 Plugin Broker
Matthew Weier O'Phinney has a new post to his blog today looking at a feature that'll be included in the upcoming Zend Framework 2 release - a plugin broker that changes the way plugins are loaded.In Zend Framework 2.0, we're refactoring in a number of areas in order to increase the consistency of the framework. One area we identified early is how plugins are loaded. The word "plugins" in Zend Framework applies to a number of items: Helpers, Application resources, Filters and validators and Adapters.In...

CodeIgniter.com: CodeIgniter 2.0 - Now with more Awesome

CodeIgniter.com: CodeIgniter 2.0 - Now with more Awesome
According to a new post to the CodeIgniter.com blog, there's been even more changes in the 2.0 version of the framework - including dropping PHP4 support all together.A few days ago a new repository popped up on our internal Mercurial server. We're not particularly creative with our naming, so it was simply CodeIgniterNoPhp4. [...] With only a handful of significant changes to its codebase, the release was pushed along. We want to make CI 2 worth its name, so starting today, we're requiring PHP 5.1.6 on...