Popular posts from PHPDeveloper.org for the past week:Community News: PHP 5.4.0beta1 Released for Testing
XPertDeveloper.com: PHP Debugging Tools
Lukas Smith's Blog: My PHP framework winner predictions
Lorna Mitchell's Blog: ArrayAccess vs ArrayObject
Kevin Schroeder's Blog: Zend Framework 2 Event Manager
Michael Nitschinger's Blog: Quick Tip: Lithium Redirect
Artur Ejsmont's Blog: How to properly secure remote API calls over SSL from PHP code
PHPMaster.com: Introduction to PHP Arrays
Lars Tesmer's Blog:...
Xdebug's Code Coverage speedup
Friday, September 23rd 2011, 09:23 BST
Besides a debugging and development aid, Xdebug also implements the back-end code to provide code coverage information for use with PHPUnit. Code coverage tells you how much of your code base is actually being tested by your unit tests. It's a very useful feature, but sadly, it slows down PHP's execution quite a lot. One part of this slowdown is the overhead to record the information internally, but another part is because...
Phix now has a new home, as I've recently left Gradwell. And a new PEAR channel. And an awesome new logo thanks to Jeremy and Kerry from Magma Digital. And a roadmap on Trello.
And, if you're using either Ubuntu or Fedora as your dev desktop/laptop, a new one-line installer that takes care of those pesky system-level dependencies that the PEAR Installer can't help you with :)
How To Move To The New PEAR Channel
If you have already installed an older version of Phix from pear.gradwell.com, you'll need to...
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components.
This is a guest post by Martin WernstAYhl. Martin is a university student at Chalmers University of Technology, Sweden, currently studying the first year of Engineering Physics. He...
On the Liip blog today, there's a quick post about integrating Symfony2 and Magento, the popular PHP-based ecommerce platform.So last week four developers sat together on a regular Hackday to see what's needed to hook up Magento into Symfony. To make this short the outcome is a Magento bundle for Symfony2. When we met in the morning we weren't even sure what exactly to try out but soon agreed on implementing a Symfony authentication which uses the Magento customer database.The post talks about some of...
The Zend Developer Zone has a new post about this month's Zend Framework Bug Hunt Days happening today (the 22nd), 23rd and 24th:For those who haven't put the recurring event in their calendar, the Zend Framework Monthly Bug-hunt is here again! This Thursday, Friday and Saturday (the 22nd, 23rd and 24th of September), 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...
Go to Live Demo
Monitoring your web application is essential for professional maintenance and development. Especially if you have a high load on your website and you want to keep the current users on your site, you definitely should stay alert for problems
and be able to react fast in case of problems. Monitoring is also crucial for A/B tests, since you have to evaluate somehow which version
of your website performs better. Many big players also measure constantly how much revenue the website...
On PHPBuilder.com today there's a new article from Jason Gilmore introducing you to namespaces in PHP 5.3+ development. Namespaces make it simpler to separate out your code into functional pieces and help keep it organized.The inclusion of namespace support within PHP 5.3 effectively brought the need for gripes and workarounds to a halt, however adoption of this exciting new feature has seemed surprisingly slow in the more than two years since its release. [...] The utility of this new feature is simply...
XPertDeveloper.com has a quick new post looking at a function that might be overlooked until it suddenly becomes just what you need - clearstatecache for clearing file state information in the current script.For the functions like is_file(), file_exists(), etc PHP caches the result of this function for each file for faster performance if function called again. But in some cases you want to clear this cached information, for the task like getting the information of the same file multiple times in same...
I keep coming across code like this (lifted, verbatim, from an OSS project I've been working with recently):
$a = $num * $coeff + $_SANITIZED_GET['val'];What, in the name of all that is good and just, is aoa?a Or, for that matter, what are aonuma and aocoeff?aComputer manufacturers, OS vendors, and programming tool developers have worked for decades to give us the ability to create identifiers of arbitrary length. Personally, I'd much rather see someReallyLongNameThatLooksALittleRidiculous than a...
SitePoint's PHPMaster has a new post today, the third part of a series helping you get your application from "zero to cloud" on an Amazon EC2 setup. In this latest post they wrap things up by showing how to set up the full lamp stack on the remote server. Here's part one and two that lead up to this latest part.This is the final article in a three part series focused on setting up EC2 as a sandbox for application developers. I assume you have an AWS account with Amazon; if you don't, please read Part 1...
Here's what was popular in the PHP community one year ago today:Developer.com: Build Your First PHP for Android Application
Gonzalo Ayuso's Blog: Live video streaming with PHP
Matthew Turland's Blog: "Web Scraping with PHP" Now Available in Print!
Kevin Schroeder's Blog: You want to do WHAT with PHP? Chapter 8
Ibuildings techPortal: Building an Continuous Integration Server for PHP with Hudson
Jordi Boggiano's Blog: PHP Console in Your Browser
Community News: SymfonyDay 2010 Registration Discount
MODX: A CMS Framework Designed with PHP Developers in Mind
By Bob Ray
If you have ever wrestled with trying to create a custom Web site using a CMS that made you jump through hoops to get the desired output, you should definitely check out MODX, a CMS framework designed from the ground up with Object Oriented Programming PHP developers in mind.
Read this article to learn more about MODX CMS framework and how you can easily use it to build your own content management system customized to your needs.
Lars Tesmer has a suggestion for all of the unit testers out there (you do unit test your code, right?) when needing to test a piece of code that makes a call to something on the file system or a remote resource. Their examples come from tests written against the Assetic codebase.For our most recent After Work Hacking my co-workers and me decided to write unit tests for the open source project Assetic. That turned out to be a better decision than our last one, yet we still ran into an interesting...
Freek Lijten recently attended a conference put on by PFZ.nl, a one day event of PHP content on a wide range of topics. He shares some of his impressions about the event and why he thinks they're a valuable part of any developer's experience in their field.I had a great time for three main reasons: I learned new stuff, I met people and I got inspired by topics I already knew about. I like to (shortly) share on the experience itself and I hope to explain why I think it is valuable to visit a conference...
On the Ibuildings techPortal today they've posted the latest episode in their DPC Radio series as recorded at last year's Dutch PHP Conference. This episode is Martin de Keijzer's talk Let's take over the world with Zend Framework.Many people use Zend Framework for it's MVC implementation, but it has a lot of hidden gems. Internationalization (i18n) is one of them. We will look how you can create an application that will have the right languages, currencies, dates and times all based on the location of...
For those who haven't put the recurring event in their calendar, the Zend
Framework Monthly Bug-hunt is here again! This Thursday, Friday and Saturday
(the 22nd, 23rd and 24th of September), 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.
The purpose of business analytics is to find data from the company's information systems that can be used to support decision making. What customers buy most? What do they do before a buying decision? What are the signs that a customer may be leaving?
For the last month we've been working in Salzburg to build such a system, the Intelligent Project Controlling Tool needed for running large collaborative research projects like IKS. Since the design we went with can be reused for other business analytics...
Alberto Viana has a new post to his blog about using Oracle ZML Types with a Zend Framework application. He created a custom adapter to create the type and handle the binding/execution on an new OCI8 connection.So few days ago I needed to insert Oracle XMLtype with Zend Framework. I used oracle adapter to wrote it in Zend Framework. I was looking for and I found on Chris Jones Blog.His table has a column defined as an XMLType, a special data type specifically for working with XML datasets directly in the...