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 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...
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:...
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 recordMyDesktop to record video clips, but
afterwards, re-encode them to AVI (see the script
Record audio to WAV, or convert compressed audio to WAV format
Use OpenShot to stitch clips together and layer audio and video
Remember to reset the video length if you change the playback
Export to a Web + Vimeo profile for best...
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 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 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...
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...
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 [...]
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...
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 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...
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...
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....
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 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...
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 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....
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.
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...