Every time I need to sort a multi-dimensional array in PHP, I have to remind myself how to do it. It's not quite as quick and easy to look up as most things, so I'm going to blog a quick example. I've always felt like there must be a better way to do this, so please let me know if there is, and I'll update this post accordingly.
Here's a simple array of users:
$users = array();
$users = array('username' = 'shiflett', 'name' = 'Chris Shiflett');
$users = array('username' = 'dotjay', 'name' = 'Jon...
Lorna Mitchell has a new post today spotlighting a handy feature of the phpMyAdmin tool - the visual designer view. It allows you to build (and see) the relationships between your MySQL-based application's elements.I'm happier at the command line, but needed some graphical representation of information and easy ways to export example queries for the book I'm working on. I noticed that phpMyAdmin now has a Designer tab, which shows relationships between tables and allows you to define them.She includes...
PHPClasses.org has posted the latest episode of their "Lately In PHP" podcast series, a look at the cloud hosting PHPFog now offers including an interview with Lucas Carlson, CEO of PHPFog.On the Lately in PHP podcast episode 13, Manuel Lemos and Ernani Joppert interview Lucas Carlson, founder and CEO of PHPFog, to tell us about the advantages of using a Cloud Hosting service that is optimized to address needs that are specific to PHP Web sites and applications. They also comment on the PHP 5.3.6 forked...
I'm happy to say that I will be speaking at this year's ZendCon-the Zend PHP Conference for Developers. I'll be presenting a tutorial on Learning CouchDB during the first day of the conference. From the session's description:
CouchDB is a document-oriented database that uses JSON documents, has a RESTful HTTP API, and is queried using map/reduce views. Each of these properties alone, especially MapReduce views, may seem foreign to developers more familiar with relational databases. This tutorial will...
Philip Norton has shared a script he's created in a new post today that lets you read from a Netscape-formatted cookie file (as outputted from a curl request).This file is generated by PHP when it runs CURL (with the appropriate options enabled) and can be used in subsequent CURL calls. This file can be read to see what cookies where created after CURL has finished running. As an example, this is the sort of file that might be created during a typical CURL call.The file is structured, plain-text content...
On DevShed today there's a new tutorial posted talking about the Liskov Substitution Principle (part of the SOLID set of principles) and how to use it in a practical example using some object-oriented PHP.However, not all is bad with Inheritance. When used properly it can be a great ally. The question that comes to mind is: how can you keep away from building derivatives that behave totally different from the chosen abstraction(s)? Here's exactly where the Liskov Substitution Principle (LSP) comes into...
Here's what was popular in the PHP community one year ago today:Fawad Hassan's Blog: CRUD using jQuery and Codeigniter (Part 2)
Mark Karpeles' Blog: PHP can do anything, what about some ssh?
Developer.com: PHP Development Tools Improve in Eclipse Helios Update
Ole Markus' Blog: Gentoo Linux and PHP-FPM
Codrops Blog: Fresh Sliding Thumbnails Gallery with jQuery and PHP
Richard Thomas' Blog: Solar Framework manual is coming along
Eric Adams' Blog: Implementing the Observer Pattern with SplObserver and...
Dedicated PHP in Cloud Solution with PHPFog - Lately in PHP podcast episode 13
By Manuel Lemos
PHPFog is one of the first Cloud Hosting solutions dedicated specifically to PHP.
On the Lately in PHP podcast episode 13, Manuel Lemos and Ernani Joppert interview Lucas Carlson, founder and CEO of PHPFog, to tell us about the advantages of using a Cloud Hosting service that is optimized to address needs that are specific to PHP Web sites and applications.
They also comment on the PHP 5.3.6 forked version...
This week I've been using phpMyAdmin for what feels like the first time in years. I'm happier at the command line, but needed some graphical representation of information and easy ways to export example queries for the book I'm working on. I noticed that phpMyAdmin now has a Designer tab, which shows relationships between tables and allows you to define them.
If your table types don't support foreign keys, you can still draw links in here, and phpMyAdmin will show the id fields as links to the data...
My article from the inaugural issue of Drupal Watchdog is now online. Design Patterns of Drupal is based on my original session from DrupalCon Paris. Although Drupal-centric, it serves as a great introduction to the concept of design patterns in general.
If you're going to be at DrupalCon London, watch for Watchdog issue #2 in your swag bag! It looks like I may have as many as three articles in it, discussing mobile web design, Drupal 7's improved node access system, and how to approach the "Drupal...
In this new post to his blog, Christian wonders if forking the 1.x branch of Symfony to create a 1.5 version is a real possibility.The idea of forking came up. But is this really going to happen? And does it make any sense at all? What would be the benefit of forking symfony 1.4 and continuing development of the 1.x branch?He suggests that it might be worth it because the branch is currently stable, it has a proven track record, there's already several plugins available and there's a comfort level among...
On PHPBuilder.com today, Jason Gilmore has posted a look at five PHP-based ecommerce solutions with a wide range of feature sets and larger support and usage across the web.Literally hundreds of open source and commercial PHP-based ecommerce solutions exist, yet only a select few will adequately meet the aforementioned requirements. If you're currently exploring a PHP-based ecommerce project, consider starting your investigations by learning more about these five prominent solutions.The five that made...
On the PHP.net site today there's an announcement about the release of the PHP 5.4 alpha1, the first version of the upcoming 5.4 release.The PHP development team is proud to announce the first PHP 5.4 alpha release. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviors. Read the NEWS file for a complete list of changes. [...] This alpha release exists to encourage users to identify bugs, and to ensure that all new features and backward compatibility breaks are evaluated...
Bastien Labelle has posted a new (tongue-in-cheek) post to his blog today about a presentation he and a friend of his recently gave at a conference - Why PHP is so Much Better than Ruby.Of course, saying that PHP is so much better than Ruby is pure bullshit, and this talk is, as I hope you guessed, a big big sarcasm. Trolling apart, I think this talk is also quite interesting, since somehow it shows some of the weaknesses of Ruby and its ecosystem.Included in the post are their slides and a brief...
MySQL Multi Query
Intelli Pro Template Engine
PHP Paging List Class
Image upload resize crop make thumbnail at once
Nibble PHP Framework
Juozas aoJoea KaziukAnas recently wrote a post on his blog that discusses the current and future state of the PHP framework landscape. This one is going to take a little explaining, have a seat and I'll get the flip chart.
The PHP development team is proud to announce the first PHP 5.4 alpha release.
PHP 5.4 includes new language features and removes several legacy (deprecated) behaviors.
Read the NEWS
file for a complete list of changes.
THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!
This alpha release exists to encourage users to identify bugs, and
to ensure that all new features and backward compatibility breaks are evaluated
and documented before PHP 5.4.0 is released. Please report...
In a follow up to his previous post on using Neo4j with PHP, Josh Adell looks in a bit more detail about how to find paths in the data via a REST interface to the database.The thing that makes graphing databases useful is the ability to find relationship paths from one node to another. There are many algorithms for finding paths efficiently, depending on the use case.He includes some code showing the REST request (made via this client) to fetch these street-based relationships. He then creates a little...
The latest release of PHP Manager 1.2 for IIS now includes Windows PowerShell commands that can be used to install, configure and manage PHP on IIS 7 from command line. In addition those commands can be used to automate the configuration and management tasks.
Here are examples of what can be done with PHP Manager command line tools:
Register a new PHP version:
PS C:\Users\AdministratorNew-PHPVersion -ScriptProcessor "C:\PHP\536\php-cgi.exe"
Get information about current PHP configuration:
Zend Framework community member PAdraic Brady has started his own summaries of the Zend Framework Contributors mailing-list. Click on inside, I've got the URL laying around here somewhere.