My preferred way of checking if a constant is set, and if it isn't - setting it (could be used to set defaults in a file, where the user has already had the opportunity to set their own values in another.)<?phpdefined('CONSTANT') or define('CONSTANT', 'SomeDefaultValue');?>Dan.