User login

Public

Use Git to commit to CVS, such as for maintaining a Drupal module

UPDATE: See http://more.zites.net/git_drupal_contrib_cvs

Kathleen says this is complicated and not necessary - http://drupal.org/node/288873

HOWEVER-- if you ever want to let other people contribute to your project the normal way (if CVS can be considered in any way normal), then you will want the synch anyway.

Checking if a web site URL is valid: There's a Drupal function for that

drupal php check valid url

A too-simple snippet contributed elsewhere:

<?php
function valid_url($str)
{
    return ( ! preg_match('/^(http|https|ftp):\/\/([A-Z0-9][A-Z0-9_-]*(?:\.[A-Z0-9][A-Z0-9_-]*)+):?(\d+)?\/?/i', $str)) ? FALSE : TRUE;
}
?>

After following this epic thread
http://drupal.org/node/124492
it becomes clear that Drupal has a wonderful valid_url function of its own, thanks to mfer

Install and enable pspell for Apache with PHP5

This is a package requested by, at the least, the Coder Tough Love Drupal module.

Searched around for a fix to the error message on the coder tough love settings page that there was nothing to configure because it didn't have the pspell package installed, nothing at results for ubuntu pspell, enable pspell, php5-pspell, enable pspell linux said exactly what to do.

Naturally...

sudo apt-get install php5-pspell
sudo /etc/init.d/apache2 restart

is all you need on Debian / Ubuntu.

Syndicate content