PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 41 to 60 of 144

Tecmint.com: Install Apache, MySQL 5.5.27 & PHP 5.4.7 on RHEL/CentOS 6.3/5.6 & Fedora 17-12

Tecmint.com: Install Apache, MySQL 5.5.27 & PHP 5.4.7 on RHEL/CentOS 6.3/5.6 & Fedora 17-12
Tecmint.com has a new tutorial that walks you through the installation of a full LAMP stack (Linux, Apache, MySQL and PHP) on a CentOS or RedHat installation.This howto guide explains you'll how to install Apache Server with latest MySQL 5.5.27 and PHP 5.4.7 versions with php required following modules on RHEL 6.3/6.2/6.1/6.0/5.8/5.6, CentOS 6.3/6.2/6.1/6.0/5.8/5.6 and Fedora 12,13,14,15,16,17 systems using Remi repository via Yum tool.Thankfully, package management has made things a lot simpler than...

Cory Fowler: Enabling PHP 5.4 in Windows Azure Web Sites

Cory Fowler: Enabling PHP 5.4 in Windows Azure Web Sites
Cory Fowler has a recent post explaining how you can enable one of the most recent PHP releases (PHP 5.4) on your Windows Azure website via the " Bring-Your-Own-Runtime" feature.Much like many other developers, I like to live on the bleeding edge, learning new language features, using the latest tools so naturally one of the things I wanted to see in Windows Azure Web Sites is support for PHP 5.4. I'm pleased to be telling you today in this post that support for Bring-Your-Own-Runtime is now available in...

Site News: Popular Posts for the Week of 09.21.2012

Site News: Popular Posts for the Week of 09.21.2012
Popular posts from PHPDeveloper.org for the past week:Emanuele Minotto: PHP in a Tweet Reddit.com: What does it take to be hirable in the world of PHP? PHP.net: PHP 5.4.7 and PHP 5.3.17 released! PHPMaster.com: Subtype Polymorphism - Swapping Implementation at Runtime Robert Basic: Unit testing Zend Framework 2 modules Site News: Popular Posts for the Week of 09.14.2012 Justin Carmony: Vagrant & PHP: Our Success Story at the Deseret News 7PHP.com: Interview with Matthew Turland, Co-Author of "PHP Master:...

Screencasting on Linux

I've been wanting to do screencasts on Linux for some time now, and my big stumbling block has been determining what tools to use. The tl;dr: Use recordMyDesktop to record video clips, but afterwards, re-encode them to AVI (see the script I used) Record audio to WAV, or convert compressed audio to WAV format afterwards. Use OpenShot to stitch clips together and layer audio and video tracks. Remember to reset the video length if you change the playback rate. Export to a Web + Vimeo profile for best...

PHPMaster.com: Compiling PHP from Source on Windows

PHPMaster.com: Compiling PHP from Source on Windows
For most PHP developers, when they hear "compile from source" they automatically assume that the person talking means they're working with a unix variant-based system. In this new tutorial from PHPMaster.com, though, they show how to "compile from source" on a different platform - Windows.Those working in a Windows environment are more likely to download and install PHP from precompiled packages. And while I don't disagree it's easier to use a precompiled solution, even on Unix systems, there are some...

Matthew Weier O'Phinney: ZF2 Modules Quickstart (Screencast)

Matthew Weier O'Phinney: ZF2 Modules Quickstart (Screencast)
Matthew Weier O'Phinney has put together a screencast showing you how to get up and running (a quickstart) with the latest release of Zend Framework 2.One of the exciting features of the newly released Zend Framework 2 is the new module system. While ZF1 had modules, they were difficult to manage. [...] In Zend Framework 2, we've architected the MVC from the ground up to make modular applications as easy as possible. [...] To give you an example, in this tutorial, I'll show you how to install the Zend...

David Müller: Why URL validation with filter_var might not be a good idea

David Müller: Why URL validation with filter_var might not be a good idea
David Müller has a new post to his site today showing why validating URLs with filter_var is a good thing for the security of your application.Since PHP 5.2 brought us the filter_var function, the time of such [regular expressions-based] monsters was over. [With] the simple, yet effective syntax [and] with a third parameter, filter flags can be passed, [...] 4 flags are available [for URL filtering].He shows how to use it to filter out a simple XSS issue (a "script" tag in the URL) and some examples of...

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:NetTuts.com: Build Ajax Data Grids with CodeIgniter and jQuery PHPClasses.org: MODX: A CMS Framework Designed with PHP Developers in Mind DZone.com: Phar: PHP libraries included with a single file PHPBuilder.com: Introducing Namespaces for PHP Developers PHPMaster.com: Introduction to PHP Arrays Phil Sturgeon's Blog: NinjAuth: The Social Integration Package PHP has been dying for DZone.com: Practical Google+ Api Lukas Smith's Blog: My PHP...

Apple Breaks The Internet Temporarily

Apple Breaks The Internet Temporarily
Like many people, I upgraded my iPhone to iOS 6 this afternoon. The update for me wasn't all that exciting, being that I'm on the Death Star network, but it was still worthwhile to upgrade for the Do Not Disturb features. Shortly after updating, it seems that the wifi connectivity stopped working for me, as [...]

ZF2 Modules Quickstart (Screencast)

One of the exciting features of the newly released Zend Framework 2 is the new module system. While ZF1 had modules, they were difficult to manage. All resources for all modules were initialized on each request, and bootstrapping modules was an onerous task. Due to the difficulties, modules were never truly "plug-and-play", and thus no ecosystem ever evolved for sharing modules. In Zend Framework 2, we've architected the MVC from the ground up to make modular applications as easy as possible. Within...

Pádraic Brady: PHP Escaper RFC: Consistent Escaping Functionality For Killing XSS

Pádraic Brady: PHP Escaper RFC: Consistent Escaping Functionality For Killing XSS
There's been a lot of chatter about a recent RFC from Pádraic Brady on the php.internals maling list - his proposal to add native escaping to the PHP core. He shares some of his own thoughts about the proposal in a new post to his site.A short time ago today, I submitted a PHP RFC for discussion which proposes adding an SPL Escaper class and, quite possibly, a related set of functions dedicated to escaping data for output to HTML/XML to PHP: https://wiki.php.net/rfc/escaper. The RFC itself should be a...

Phil Sturgeon: Package Watch: Image Management

Phil Sturgeon: Package Watch: Image Management
Phil Sturgeon has a new post to his site talking about how he added image upload and management support to an application with an easy integration of two packages (pulled in via Composer).To get this extra functionality I added two packages to my composer.json. [...] The first is Upload by Josh Lockhart (who built Slim and started PHP The Right Way). It's currently very basic as it's not been alive long, but for the job I needed to do it worked perfect.The second package is the ImageWorkshop that let him...

Matt Frost: Using Selenium2 with PHPUnit

Matt Frost: Using Selenium2 with PHPUnit
In this new post to his site Matt Frost continues his look at using Selenium to test his applications (see the first parts here) and shows how to use the Selenium extension for PHPUnit to run all his tests from one place.So I've taken it upon myself to do a bit of reading and messing around with the Selenium Extension for PHPUnit and I wanted to share a bit of what I learned. Looking around on the internet, I didn't find a whole lot of real good information on the Selenium2TestCase API so I want to...

Community News: PHPUnit Now Available via Composer

Community News: PHPUnit Now Available via Composer
In case you missed the tweet where it was mentioned, thanks to some work from Clay Loveless, the popular PHP unit testing tool, PHPUnit, can now be installed via Composer.Thanks to this pull request on the project, adding PHPUnit to your project (and its dependencies) are a few simple commands away:The package-composer.json file, coupled with package.xml and the package2composer script that is part of the Conductor package at http://pear.claylo.com/ is all that is needed to update the composer.json file....

Miro Svrtan: Starting/organizing a developer community: ZgPHP meetup

Miro Svrtan: Starting/organizing a developer community: ZgPHP meetup
In a recent post Miro Svrtan talks about a PHP developer community he started up in the Zagreb, Croatia area, the ZgPHP user group, and some of the lessons he learned in the process.The year 2011 was a great success for developer communities in Zagreb. Although mobile developers started in 2010 with Mobile Monday, web developers were a bit shy and Ruby developers started first, then python meetups started and in the summer few people urged/pushed me to start organizing PHP Meetups. Besides colleagues I...

Chris Risner: Mobile Geolocation Apps with Windows Azure Websites Part 1: The PHP Code

Chris Risner: Mobile Geolocation Apps with Windows Azure Websites Part 1: The PHP Code
Chris Risner has posted the first part of his series looking at mobile geolocation in PHP-based Azure applications as hosted on the Windows Azure service.The first article in this mini-series on creating geolocation apps with the backend hosted in Windows Azure Websites is going to be a walkthrough of the PHP code that we'll host in Windows Azure. The PHP site will be simple and expose just a few methods. Prior to getting into the code for the service, we need to setup a new website in Windows Azure and...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Yelp Proxy Cast txtemplate Parse INI Ratchet.io Analytics API

PHPUnit 3.7

PHPUnit 3.7
The PHPUnit development team announces the immediate availability of PHPUnit 3.7.0, PHP_CodeCoverage 1.2.0, PHPUnit_MockObject 1.2.0, and DbUnit 1.2.0. Key enhancements in these releases include: New assertions, for instance ones that operate on JSON data Redesigned code coverage report It is possible again to expect (with @expectedException) the generic Exception class. Doing so is still a bad idea, though. Please note that PHPUnit 3.7 is only supported on PHP 5.3.3 (or later) and that PHP 5.4.7 (or...

Lorenzo Alberton: Updated Kafka PHP client library

Lorenzo Alberton: Updated Kafka PHP client library
Lorenzo Alberton has a new post with an update about a library he's been working on to interface with Apache's Kafka system, "a persistent, distributed, high-throughput publish-subscribe messaging system".Over a year ago I sort of reverse-engineered the protocol, and published a first rudimental library to produce and consume messages with version 0.05. Since then, the Kafka project has evolved a lot, moving from the LinkedIN repositories to the Apache Incubator, gaining traction, committers, features....

PHP Escaper RFC: Consistent Escaping Functionality For Killing XSS

PHP Escaper RFC: Consistent Escaping Functionality For Killing XSS
The Incredible Hulk (Photo credit: Boogeyman13) A short time ago today, I submitted a PHP RFC for discussion which proposes adding an SPL Escaper class and, quite possibly, a related set of functions dedicated to escaping data for output to html/XML to PHP. https://wiki.php.net/rfc/escaper The RFC itself should be a good read if you want to understand why I'm proposing this but the basics are quite simple. Cross-Site Scripting (XSS) is one of the two most common security vulnerabilities in web...