PHP Frameworks
My obsession with all things new leads me to follow every friggin’ new framework under the sun.
Here are the ones worth noting for PHP (listed alphabetically). I’ll try to keep this list as up-to-date as I can.
- Akelos
- CakePHP
- CodeIgniter
- By the makers of ExpressionEngine
- Picora
- Simple PHP Framework
- symfony
- (Not to be confused with Symphony.)
- Zend Framework
Wikipedia has their own list as well.
Source
Originally posted here.
Using Subversion to upgrade WordPress
- Use svn:externals to install WordPress plugins
- How to use SVN to update WordPress
- Subversioning WordPress Upgrades
Update (November 1, 2006): It really works. I’ve got all 3 of my blogs (one two three) now set up on SVN. The next step will to be when I add my customized themes to Subversion so all I ever have to do is go to the command line to do anything. No (s)FTP or anything. I imagine this will make switching servers really easy now.
Update (January 23, 2007): To upgrade to WordPress 2.1:
- Disable all plugins (take a screenshot first)
- Run this command:
svn switch http://svn.automattic.com/wordpress/branches/2.1/
- Go to your admin screen and update the database when prompted.
- Enable your plugins again.
Update (May 22, 2007): Just upgraded to version 2.2
Ternary Operator
Like this:
<?php
// Example usage for: Ternary Operator
$action = (empty($_POST['action'])) ? ‘default’ : $_POST['action'];
// The above is identical to this if/else statement
if (empty($_POST['action'])) {
$action = ‘default’;
} else {
$action = $_POST['action'];
}
?>
This kind of thing works in all “C-like” languages right? (JavaScript, PHP, etc.)
If/Then/Else statments are a type of Control Structure: Wikipedia, PHP docs.