In a new post to his blog Mike Willbanks shows you how to build and maintain a PEAR server with Phirum.Pirum is a simple PEAR channel server manager that was built by Fabien Potencier. The Pirum project allows you to easily setup a PEAR channel and publish your own packages quickly. This quick blog post / article will get you going with it in no time.He shows you how to install Phirum (ironicly from a PEAR channel) and how to create the XML to define the PEAR service. Running Phirum will generate a few...
Why MVC is not an application architecture and how this should affect your code. Pretty much every PHP framework is based on MVC . We will explore what MVC was originally meant to be and how it is used (and abused) in web applications these days. We will find out where the model hides, and how to organize an application's business logic and clearly separate concerns. As a bonus, unit testing will become a lot easier.
Derick Rethans has a new post to his blog today looking at a way you can dig inside of a variable that might be causing you trouble with the help of the debug_zval_dump method - a PHP function that dumps a string representation of an internal zend value directly to the standard output method (usually an "echo").The internal representation of a PHP variable container (called zval), contains the type and value of a variable, but also whether it is a reference and what its refcount is. Due to PHP's...
Karsten Dambekalns has a new post to his blog today about how he was able to get the PHP IDE PHPStorm and XDebug working together to do some debugging in his application.PhpStorm had it's share of trouble as well [with debugging], but yesterday I experienced a working debug session. Just like that, deep variable inspection and stepping through the code just worked. Today I looked into CLI debugging because Robert needed that for some complicated FLOW3 task. Also works, although it requires one step that...
Here's what was popular in the PHP community one year ago today:Community News: XHP Released by Facebook (XML in PHP)
Blue Parabola Blog: Lies, Damn Lies, and Statistics - Zend's Drupal Benchmarks
Christian Flickinger's Blog: WinCache, Apache and a pretty graph!
Brian Swan's Blog: SQL Server Driver for PHP: Understanding Windows Authentication
Ibuildings Blog: Productivity in PHP from a fun perspective
Xebee Blog: Test Driven...
Thursday, February 10th 2011, 09:12 GMT
Sometimes you want to inspect the contents of variables more closely, by looking at its internal properties. For this, PHP has the debug_zval_dump function.
The internal representation of a PHP variable container (called zval), contains the type and value of a variable, but also whether it is a reference and what its refcount is. Due to PHP's copy-on-write policy, one specific zval container can be used by multiple variables at the...
Pirum is a simple PEAR channel server manager that was built by Fabien Potencier. The Pirum project allows you to easily setup a PEAR channel and publish your own packages quickly. This quick blog post / article will get you going with it in no time.
There are a few things that you must have already to get going on this exercise (besides PHP and a Web Server *Note: you can do it without these):
To install Pirum we are simply going to be running a few...
If you're a Web developer building an application for global consumption, it's important to build in a framework for localization right from the start. This article will introduce you to Zend_Translate, and demonstrate how you can use it to add multi-language support to your PHP application.
In a recent post to the MySQL Performance Blog, there's a pointer to a few resources you can use if you need some sample datasets to run your application against - everything from airline flight information to energy usage data.Sometimes you just need some data to test and stress things. But randomly generated data is awful - it doesn't have realistic distributions, and it isn't easy to understand whether your results are meaningful and correct. Real or quasi-real data is best. Whether you're looking for...
In this new article on PHPBuilder.com today, they share ten handy tips that you might not have known you could do with the phpMyAdmin tool.Despite approaching its 12th birthday, phpMyAdmin is still under active development, with at least one significant version released every year since the project's inception. In fact even after almost a decade of use I still marvel over discovering features which I had no idea existed. In this article I thought I'd highlight 10 useful phpMyAdmin features which may have...
On the Zend Developer Zone the latest episode of their "ZendCon Sessions" podcast series has been posted. This time it's Travis Swicegood's presentation, the Pragmatic Guide to Git.The ZendCon Sessions are live recordings of sessions that have been given at previous Zend Conferences. Combined with the slides, they can be the next best thing to having attended the conference itself. [...] This episode of The ZendCon Sessions was recorded live at ZendCon 2010 in Santa Clara, CA and features Travis...
In a recent post to his blog Tom Van Herreweghe shares his method for running Zend Framework modules from a phar file, a simple archiving method native to PHP that makes it simpler to group and package related files.Using Zend Framework as an MVC application is probably the most common usage examples for Zend Framework. When you create such an MVC application, you will probably have heard about modules: reusable components of your application. [...] In my case, I usually just copy and paste the module...
Dominik Jendroszczyk passed along a tip about a tool that's been released to help make transitioning from the proprietary Google Analytics systems over to the Piwik open source analytics option simple - Google2Piwik.More and more users are turning away from Google Analytics (GA) as a provider of web measurement solutions on security, independence and functionality grounds. One problem they run into is that after years of using Google's product they have a considerable inventory of data about their...
Brian Swan has a new post to his blog today looking at one of the connection options for the SQL Server driver in PHP - the "ReturnDatesAsStrings" setting that can make handling date and time information simpler for PHP.This is short post to address a frustration I've seen mentioned on Twitter and in forums a lot: By default, the SQL Server Driver for PHP returns datetime columns as PHP DateTime objects, not strings. This can be especially frustrating if you are not aware of the ReturnDatesAsStrings...
Cisco IP Phone Framework
Read Text Files
It's been quite while since my last post and just realized that, my last post was about the very same thing: Looking for PHP gurus.
- Living in or around Montreal - No relocation or telecommute for now, sorrya
- Available in about a month
- Looking for a real technical challenge on a high traffic e-commerce website - I'm talking about 100M+ PV
This is a permanent position at a reputable Montreal company of 15 years.
Brandon Savage has a new post to his blog today with a list of five tools he can't live without in his day-to-day development work. These range from the physical hardware under his fingertips down to software that helps get the job done.Every developer has a toolkit of favorite tools and applications that help them develop more effectively. Being individuals, developers often differ (and in some cases, argue) about the tools they use. One of the most frequent questions I'm asked is "what are the tools...
I am thrilled to announce that I will be speaking this March at the 4th annual Palmetto Open Source Software Conference in Columbia, SC. It's my first time to the conference, and I'm really excited to be a part of it. During the conference, I'll be doing two talks.
aoDeveloping Easily Deployable PHP Applicationsa will be featured on the technical track, which is a talk centering around all the things we do at Sugar to build an app that deployed on several different platforms.
aoSugarCRM - Your next...
Kevin Schroeder has a new post to his blog today about dynamic typing (a big part of PHP's variable handling) and how it has nothing to do with scalability in reply to some comments about how using them can hinder the performance of an application.Every once in a while I inject my opinions into places where they are not welcome. I have heard from people in the staticly-typed realm of how amateur dynamic typing is. Some people are interested in understanding how to use dynamic typing, others, not so much....
In a recent post to his blog Rafael Dohms has shared a mini-application he's developed to work with his test users on Facebook when developing his applications - his Facebook Test User Manager.Its possible to create up to 100 test users per app, creation allows you to choose whether the user already should have the application installed and which permissions you want them to have, using API calls. You can also remove users, list all of your app's test users and even create friend connections between them...