PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 5561 to 5580 of 6889

php|architect: Got MSSQL? Check out our whitepaper!

php|architect: Got MSSQL? Check out our whitepaper!
The folks over at php|architect have created a white paper detailing some of their experiences with using the SQL Server Driver (v2.0) with PHP and made it available for download.A while back, our friends at Microsoft asked us to write a whitepaper on how to use Microsoft SQL Server from PHP through their brand-new SQL Server Driver 2.0, which you may have noticed tucked away in a corner of the download package for our September 2010 issue. Now that we've had a chance to collect feedback and fix a few...

Wojciech Sznapka's Blog: Accessing private object property from other object in PHP

Wojciech Sznapka's Blog: Accessing private object property from other object in PHP
Wojciech Sznapka has a new post to his blog showing an interesting OOP programming strick related to accessing private properties in one object from another if they're derived from the same class.Last time I wrote about Weirdest PHP construction I've ever seen, now I found another unusual PHP solution. PHP offers 3 visibility modifiers: private, protected and public. Private properties and methods can't be accessed outside the object, as well as from inherited classes. With one exception... They can be...

Ralph Schindler's Blog: Composite Rowsets For Many-To-Many Relationships Via Zend_Db_Table

Ralph Schindler's Blog: Composite Rowsets For Many-To-Many Relationships Via Zend_Db_Table
Ralph Schindler has posted a handy tutorial (along with some helpful code) to his blog today about handling many-to-many composite rowset relationships with the Zend_Db component of the Zend Framework. 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. [...] To model M:N relationships, database developers must get creative. By employing the use of a...

Kevin Schroeder' Blog: Getting good PHP programmers

Kevin Schroeder' Blog: Getting good PHP programmers
Kevin Schroeder has posted some of his thoughts how how you, the one looking for good PHP developers, can really get the best talent out there you can find based on his experiences in interviewing other developers.I can interview for certain (but by no means all) PHP positions because I know a fair about PHP and I believe that being smart but being an asshole does not make you a good PHPer. But not everyone who interviews knows that. And not only that, it is getting difficult to find good PHP developers....

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,...

Latest PHP Tweets