PHP is a try and guess language.
drush
Keep Drush Up to Date
We're big fans of Drush. It's installed on all of our servers and it's a great way to perform maintenance tasks, download core and modules, and much much more. I'm not a big fan of installing from zip files though, so let's use git to easily keep our Drush install up to date.
Fix pear permissions problem on Mac OS X
Are your Drupal sites running the latest core?
At EchoDitto, we host a lot of Drupal sites. Just about all of our web servers contain more than one completely separate Drupal cores since we develop most of our websites independently. We also keep an eye out on Drupal Security and when to apply core updates. Since we're not using Aegir, nor do we run every site off of a single multi-site core install, we need a quick and easy way to see what versions we're running.
Downloading Modules and Themes when ftp.drupal.org is Down
As of this posting, ftp.drupal.org has been down for about five hours. This is kind of a bummer, because as long as FTP is down, you can't download new modules.
Or so I thought. If you use Drush, you can easily check out the code for the latest stable release of a module from Git using the --package-handler argument:
drush dl betterselect --package-handler=git_drupalorg
As always, Drush figures out which version of the module (or theme) is the latest and grabs that for you.
Drupal for Firebug: Under-the-hood Made Easy
Let's start here: Drupal for Firebug is amazing. I'll even go so far as to say that it's more useful than Devel Themer. More details
below, but you should start by downloading the Drupal for Firebug Firefox
extension (or the
Chrome
one) and drush dl drupalforfirebug on a local
project and giving it a spin.







