PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 141 to 160 of 304

Regex html Sanitisation: Off With Its Head!

Regex html Sanitisation: Off With Its Head!
Image via Wikipedia A long time ago someone coined the phrase Cross-Site Scripting and it became popularly abbreviated as XSS (the X was suggested to avoid confusion with CSS). XSS is a family of vulnerabilities that allows an attacker to inject arbitrary content, often Javascript, into the output (not necessarily html) viewed by users of a web application. These injections tend to do bad things. It is a plague upon web applications and not just those written in PHP. Defeating Cross-Site Scripting The...

Freeaqingme's Blog: PHP, JS & Service layers: Blend like never before

Freeaqingme's Blog: PHP, JS & Service layers: Blend like never before
On his Tweakblog today Freeaqingme has posted about some work he's done linking Javascript to a PHP service layer and overcoming some of the performance issues he came across.The past week I've been only programming (clientside) Javascript, and last night I finally got to tying it all to the serverside app, which is written in PHP. While adding some functionality to my Service Layer, it came to mind how much slower this process was in the past. [...] One of the nice things of Service Layers and...

PHPBuilder.com: Using SPL Iterators in PHP to Interact with Different Data Types

PHPBuilder.com: Using SPL Iterators in PHP to Interact with Different Data Types
On PHPBuilder.com today there's a new tutorial from Jason Gilmore about using the SPL with different data types to more effectively work with them more effectively.One great way to incorporate more OOP into your applications is through the Standard PHP Library (SPL), a powerful yet largely unknown extension made part of the official PHP language with the PHP 5.0 release. [...] In this tutorial I'll introduce you to several of my favorite SPL iterators, providing you with the basis from which you can...

Chad Lung's Blog: A quick intro to using PHP PDO with MySQL

Chad Lung's Blog: A quick intro to using PHP PDO with MySQL
Chad Lung has posted an introduction to PDO, PHP Data Objects, in a simple PHP script:PHP PDO (PHP Data Objects) ship with PHP 5.1 and above and is very easy to work with. Today I'm going to show you one way of performing CRUD actions on a MySQL database using PDO. Keep in mind what I'll show you is only one way of doing things and just a fraction of what PDO can do.He shows how to connect it to your MySQL database (via the connect string) and, based on his sample "pdo-demo.users" table, use prepared...

PHP 5.3.6 Released!

PHP 5.3.6 Released!
The PHP development team would like to announce the immediate availability of PHP 5.3.6. This release focuses on improving the stability of the PHP 5.3.x branch with over 60 bug fixes, some of which are security related. Security Enhancements and Fixes in PHP 5.3.6: Enforce security in the fastcgi protocol parsing with fpm SAPI. Fixed bug #54247 (format-string vulnerability on Phar). (CVE-2011-1153) Fixed bug #54193 (Integer overflow in shmop_read()). (CVE-2011-1092) Fixed bug #54055 (buffer...

On feature-branches and pull-requests

On feature-branches and pull-requests
Everyone and their mother uses Git + GitHub combo these days. A lot of open-source projects accept patches using github's pull requests, becausea well, because it is the easiest way to review and accept patches. But, novice Git users don't know how to do this optimally, and aonaivea approach leads to complexities. Git is a distributed version control system, which means that everyone can aocommita to their copies of repositories. Syncing these commits with upstream is a bit more difficult and leads to...

Voices of the ElePHPant: Interview with Ivo Jansch

Voices of the ElePHPant: Interview with Ivo Jansch
The Voices of the ElePHPant podcast has posted their latest episode today - an interview with Ivo Jansch of Egeniq, a mobile development company.Cal asks his traditional "three questions": What's your background in programming and how did it lead you to PHP? What insight do you have to share with other managers about hiring active PHP community members? What advice to do you have community members looking to attract the attention of hiring managers? You can either listen in-page, by downloading the mp3...

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:Brandon Savage's Blog: Learning Zend Framework: A Case Study Kovshenin.com: The Web Development Cycle Explained Alan Sorkin's Blog: The Difference Between A Developer, A Programmer And A Computer Scientist Joomla Community Site: Creating a Joomla Template From Scratch P'unk Avenue Blog: Faster, PHP! Kill! Kill! Ibuildings techPortal: 8 Reasons Every PHP Developer Should Love Javascript Chris Roane's Blog: 10 Things I Wish I Knew as a Web...

PHP 5.3.6 Released!

PHP 5.3.6 Released!
The PHP development team would like to announce the immediate availability of PHP 5.3.6. This release focuses on improving the stability of the PHP 5.3.x branch with over 60 bug fixes, some of which are security related.Security Enhancements and Fixes in PHP 5.3.6:Enforce security in the fastcgi protocol parsing with fpm SAPI.Fixed bug #54247 (format-string vulnerability on Phar). (CVE-2011-1153)Fixed bug #54193 (Integer overflow in shmop_read()). (CVE-2011-1092)Fixed bug #54055 (buffer overrun with high...

Netretail's online retail operation benefits from personal contact

Netretail's online retail operation benefits from personal contact
Hot on oracle.com is a snapshot of Netretail Holding B.V. profiling their use of PHP and Oracle technology such as Oracle RAC cluster database to become a leading online retailer across Central and Eastern Europe. We've also just refreshed our...

SearchCo.de: List of Most Commonly Used PHP Functions

SearchCo.de: List of Most Commonly Used PHP Functions
In a new post to the SearchCo.de blog Ben Boyter generated a listing of the most commonly used PHP functions/structures based on the contents of several of the major PHP projects from around the web.One thing that I considered some time ago was working out which are the most common functions in a language and adding this as an additional signal to ranking. I couldn't find anywhere else on the web with this question answered so I took my own approch. The method was to take a collection of large PHP...

SmashinGeeks.com: Display the Number of Retweets for a Post Using PHP

SmashinGeeks.com: Display the Number of Retweets for a Post Using PHP
On the SmashinGeeks.com site there's a recent post showing you how to make a simple request and get the number of retweets for a post using PHP and Tweetmeme/Backtype.Tweeting is what we do after publishing posts. To place some minimal text that jumps upon the Tweet on Twitter will be more great instead of using a tweet button. Its made possible to count the number of tweets using PHP only, however if you want to sizzle it up, then its your way.They include code examples of how to connect to each of the...

Symfony Blog: Symfony Live 2011 Paris Videos

Symfony Blog: Symfony Live 2011 Paris Videos
If you weren't able to make it to the Symfony Live Paris event, you're in luck - they've just posted the videos from the sessions presented in the main room of the conference (including keynotes).The 2011 edition of the Symfony Live conference in Paris was a blast. With 540 attendees, this was the biggest Symfony conference ever. [...] This year, we also had a video team in the main room which recorded all the sessions. So, thanks to Brainsonic, I'm really happy to announce to all the people who missed...

NetTuts.com: The ABCs of Web Development

NetTuts.com: The ABCs of Web Development
NetTuts.com has posted what they call the ACBs of Web Development, a list of technologies - one for each letter of the alphabet - that you as a web developer would do well to learn at least a little about.Web development can often be an utterly perplexing affair. Today, aimed at beginners, I'd like to introduce you to twenty six concepts or technologies, each mapping to a letter of the alphabet. Sounds wonky? It probably is!Technologies in their list include: Ajax Firebug Keyword Optimization Node.js...

Sebastian Bergmann's Blog: Visualization of PHPUnit Development

Sebastian Bergmann's Blog: Visualization of PHPUnit Development
On his blog Sebastian Bergmann has a recent post about how he's visualizing PHPUnit's development and pushing that information into a video based on the history of the project.According to svn.php.net, I committed the first PHPUnit code to cvs.php.net on November 27th 2001 and the first release, PHPUnit 0.1, was made on December 1st 2001. [...] On December 26th 2009, I moved the development of PHPUnit from svn.phpunit.de to GitHub. I imported the history from Subversion into Git. As you can see in the...

Gonzalo Ayuso's Blog: Real time notifications with PHP

Gonzalo Ayuso's Blog: Real time notifications with PHP
In a new post Gonzalo Ayuso about a system he's developed to create real-time notifications for PHP applications using a mix of PHP and javascript (jQuery).Real time communications are cool, isn't it? Something impossible to do five years ago now (or almost impossible) is already available. Nowadays we have two possible solutions. WebSockets and Comet. [...] I prefer to use comet (at least now). It's not as good as websockets but pretty straightforward ant it works (even on IE). Now I'm going to explain...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
SMTP or mail function E-mail sending class Sound Regex ZEND_EPS_DTEXEC Array Sorter URL rewrite Youtube Video Fetcher Inter Error and Exception Handler Serial Proof Loaded Files Secure Image Uploading and Resizing Malware Scanner Card deck objToSql Labels

Speaking at the PHPBenelux march meetup

Speaking at the PHPBenelux march meetup
I'll be speaking the next PHPBenelux meetup in Amersfoort about implementing WebDAV using PHP. Joshua Thijssen will also be doing a talk about MySQL optimization. The meetups are free, so if you have some time after work, drop by and say hi. You can sign up at the PHPBenelux site.

The Ideas of March

Chris Shiflett has asked the question, why don't people blog anymore? In this age of real-time streams and dead-simple status updates, blogs often feel like the uncared-for step-child or a website; indeed, many folks are trading their blogs for pages that simply track their various lifestreams (tweets, facebook status, flickr images, and more). While this sort of thing is trendy and interesting, it also sucks:

Visualization of PHPUnit Development

Visualization of PHPUnit Development
According to svn.php.net, I committed the first PHPUnit code to cvs.php.net/ on November 27th 2001 and the first release, PHPUnit 0.1, was made on December 1st 2001. I started using svn.phpunit.de for the development of PHPUnit on June 29th 2006. I did not import any history from CVS into Subversion. On December 26th 2009, I moved the development of PHPUnit from svn.phpunit.de to GitHub. I imported the history from Subversion into Git. As you can see in the video, moving to GitHub lead to an increased...