Category: PHP

  • Use Drush to update multiple environments

    Keep development and production environments in sync with this drush setup: https://www.acquia.com/blog/use-drush-sync-your-drupal-installations-between-multiple-environments

  • Data API’s

    Here are a list of programming API’s that provide access to lots of data   http://www.programmableweb.com/apis/directory

  • preg_match() matching quotes – How to escape quotes

    I was having the most difficult time getting preg_match() to match a double quote. $string = ‘<a href=”https://www.calcmaster.net/” class=”link”>calcmaster.NET</a>’; if ( preg_match(‘/src=”(.+?)”/’, $string, $matches) ) { $url = $matches[1]; } This did not work for me.  I assumed that the source string may have had some unicode characters for the double quotes so I converted…