PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 2001 to 2020 of 6889

PHPBuilder.com: Error Handling in PHP 5

PHPBuilder.com: Error Handling in PHP 5
New on PHPBuilder.com today Leidago Noabeb gives you a pretty comprehensive overview of error handling in PHP - everything from the types of errors to how to control which are output in which environments.In this article we will be looking at how to handle errors in PHP. Errors are an inevitable part of software development, and accordingly, we will be looking at the various error types and demonstrating how to handle them. If you intend to run any of the sample scripts in this article, please make sure...

Brandon Savage's Blog: An XSS Vulerability In The Making

Brandon Savage's Blog: An XSS Vulerability In The Making
Brandon Savage has a new post to his blog about what he calls a XSS vulnerability in the making, something to watch out for when you're doing validation in PHP involving the possibility of numbers as strings.Back in September, Socorro received a security bug relating to the method we were using for processing inputs for the duration of certain reports. The vulnerability included a proof of concept, with an alert box popping up on production when the link was followed. [...] I was quite surprised at the...

Web Mozarts: Symfony2 Form Architecture

Web Mozarts: Symfony2 Form Architecture
In this new post to the Web Mozarts site, Bernhard talks about the architecture behind the current Symfony2 forms implementation and how it handles the requests your forms make.Symfony2 features a brand-new Form component that, to my knowledge, supersedes most existing PHP form libraries in functionality and extensibility (not counting the still lacking, native JavaScript support). [...] The purpose of this post is to demonstrate that the Symfony2 Form component is perfectly suited for this requirement....

Nikita Popov's Blog: Scalar type hinting is harder than you think

Nikita Popov's Blog: Scalar type hinting is harder than you think
In this new post to his blog Nikita talks about scalar type hinting and why it's harder than most people think to accomplish.One of the features originally planned for PHP 5.4 was scalar type hinting. But as you know, they weren't included in the release. Recently the topic has come up again on the mailing list and there has been a hell lot of discussion about it. Yesterday ircmaxell published a blog post about his particular proposals. The reactions on reddit were mixed. On one hand it is clear that...

Anthony Wlodarski's Blog: Node.js and Zend Auth with Sessions stored in the database

Anthony Wlodarski's Blog: Node.js and Zend Auth with Sessions stored in the database
Anthony Wlodarski has posted a quick example of how he shared the sessions from Zend_Auth in his Zend Framework application over with a Node.js server/application.Recently on a project I had to make changes to a underlying portion of the sites architecture to move sessions in Zend Framework from file storage to database storage. However this affected a piece of the architecture. Node.js, which manages all our real time interaction, looked at sessions at the file level. This was quite a easy transition...

Phil Sturgeon's Blog: Packages: The Way Forward for PHP

Phil Sturgeon's Blog: Packages: The Way Forward for PHP
In this new post to his blog Phil Sturgeon talks about what he (and apparently several others) think is the "way forward for PHP" to make it a better language and ecosystem - packages.What is a package? A package is a piece of reusable code that can be dropped into any application and be used without any tinkering to add functionality to that code. [...] Most package systems also allow for something called dependencies. [...] This is how most modern programming languages work, but to make a...

Community News: PHP Conference Brazil 2012 Announced

Community News: PHP Conference Brazil 2012 Announced
In this new post to his blog, an official announcement about this year's PHP Conference Brazil (2012) has been made:It's official: PHP Conference Brazil 2012 will take place at UNIFIEO, in the city of Osasco (SP) Brazil from November 30th to December 2nd. Tracks for the event were chosen by the audience, through a poll we've published on Twitter: Frameworks & Tools, APIs & Webservices, Challenges and Trends, Case Studies and Successful Cases, Security and Job Scenarios.This year's event will be happening...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Dev Front Cfw Router My Utils HAAR PHP Config Storage Generic Pager MySQLi Handler JFWork FDB REST HTTP CakePHP Counter Helper Cache Factory MySQL Query Builder Smarty Email MySQL (Query Builder)

An XSS Vulerability In The Making

An XSS Vulerability In The Making
Back in September, Socorro received a security bug relating to the method we were using for processing inputs for the duration of certain reports. The vulnerability included a proof of concept, with an alert box popping up on production when the link was followed. The Vulnerability I was quite surprised at the root cause of [...]

Living in the Prove It Culture

Living in the Prove It Culture
Engineering cultures differ from shop to shop. I have been in the same culture for 13 years so I am not an expert on what all the different types are. Before that I was living in Dilbert world. The culture there was really weird. The ideas were never yours. It was always some need some way off person had. A DBA, a UI "expert" and some product manager would dictate what code you wrote. Creativity was stifled and met with resistance. I then moved to the early (1998) days of the web. It was a start up...


Matthew Weier O'Phinney's Blog: View Layers, Database Abstraction, Configuration, Oh, My!

Matthew Weier O'Phinney's Blog: View Layers, Database Abstraction, Configuration, Oh, My!
Matthew Weier O'Phinney (of the Zend Framework project) has posted an introduction to some new ZF2 features - view layers, abstraction and configuration updates.Late last week, the Zend Framework community 2.0.0beta3, the latest iteration of the v2 framework. What have we been busy doing the last couple months? In a nutshell, getting dirty with view layers, database abstraction, and configuration.He covers each topic well, providing code examples for all three - a simple view layer (more here), database...

Voices of the ElePHPant: Interview with Laura Beth Denker

Voices of the ElePHPant: Interview with Laura Beth Denker
The Voices of the ElePHPant podcast has released their latest episode - an interview with Laura Beth Denker of Etsy.Cal's "three questions" for her were: What's your title, what it means and what do you do? ("Anthropologist of Developer Culture") Can you talk about the toolset Etsy uses for continuous integration? Can you discuss private methods and why you like them? You can listen to this latest episode either via the in-page player, by downloading the mp3 directly or by subscribing to their feed.

Anthony Ferrara's Blog: Parameter Type Casting in PHP

Anthony Ferrara's Blog: Parameter Type Casting in PHP
Anthony Ferrara has a new article posted to his site today about parameter typecasting and the discussions that have been happening about it on the PHP "internals" mailing list.As any of you who follow the PHP internals list know, scalar type hinting has been a hot topic as of late. You'll also know that I've submitted two new RFC (Request For Comment) proposals for inclusion of two new major features in the PHP language. I figured it was worth going into both RFCs and patches a little deeper, explain my...

NetTuts.com: PHP 5.4 is Here! What You Must Know

NetTuts.com: PHP 5.4 is Here! What You Must Know
NetTuts.com has posted their own "what you must know" about the recently released (major) upgrade to the PHP language - PHP 5.4.PHP 5.4 is here; the next major step forward since version 5.3 - keeping PHP 6 (full Unicode support) on hold for now. The latest enhancements significantly improve its elegance, while removing deprecated functionality, resulting in a dramatic optimization of the runtime (up to 20% more speed and memory usage reduction).They hit all of the highlights: Traits Built-in CLI...

Ben Ramsey's Blog: Build PHP 5.4 on CentOS 6.2

Ben Ramsey's Blog: Build PHP 5.4 on CentOS 6.2
In this latest post to his blog Ben Ramsey shows you how to, inside of a virtual machine, set up a server with PHP 5.4 installed (using CentOS 6.2).In case you haven't heard the news, the PHP project released version 5.4.0 last Thursday. Naturally, I decided it was time to install and give it a try. I chose to install to a clean and bare-bones CentOS 6.2 virtual machine using VirtualBox. I did this for two reasons: 1) I wanted a clean environment for the build, and 2) I wanted to play with CentOS. At the...

Ilia Alshanetsky's Blog: Performance Analysis of isset() vs array_key_exists()

Ilia Alshanetsky's Blog: Performance Analysis of isset() vs array_key_exists()
Ilia Alshanetsky has posted about a performance difference he's found between using the isset and array_key_exists functions in PHP to see if a value exists.At Confoo I had an interesting conversation with Guilherme Blanco regarding the fact that in Doctrine 2 they had a performance issue due to usage of array_key_exists() and how it was significantly slower than isset(). His anecdotal example was that doing isset() took 0.5 seconds, while array_key_exists() for the same operation took 5 seconds! That...

PECL/mysqlnd_ms: MySQL 5.6.4-m8+ global transaction identifier feature supported

PECL/mysqlnd_ms: MySQL 5.6.4-m8+ global transaction identifier feature supported
MySQL Replication is sometimes critizied for being asynchronous and having slaves that lag behind. True! However, sometimes slaves can be used safely and reliably for read-your-writes. Its easy for PHP MySQL users. All the magic is in the driver. As of yesterday, the development version of PECL/mysqlnd_ms 1.3.0-alpha supports not only a client-side global transaction ID emulation but also the global transaction identifier feature of MySQL 5.6.4-m8. Read-your-writes (session consistency) with MySQL...

Community News: Latest PECL Releases for 03.06.2012

Community News: Latest PECL Releases for 03.06.2012
Latest PECL Releases: inotify 0.1.5 vld 0.11.0 sundown 0.3.0 memcached 2.0.1 amqp 1.0.1 memcached 2.0.0 timezonedb 2012.2 pecl_http 2.0.0dev6 timezonedb 2012.1 htscanner 1.0.1

Scalar type hinting is harder than you think

Scalar type hinting is harder than you think
One of the features originally planned for PHP 5.4 was scalar type hinting. But as you know, they weren't included in the release. Recently the topic has come up again on the mailing list and there has been a hell lot of discussion about it. Yesterday ircmaxell published a blog post about his particular proposals.The reactions on reddit were mixed. On one hand it is clear that people do really want scalar type hints, on the other hand they didn't seem to like that particular proposal.One comment...

Latest PHP Tweets