[snip] If I define a constant within a function, it appears that the constant is only defined within the namespace of the function. Fair enough.
Can I globalise these definitions? [/snip] They should be global already... http://us3.php.net/manual/en/language.constants.php "Like superglobals, the scope of a constant is global. You can access constants anywhere in your script without regard to scope. For more information on scope, read the manual section on variable scope." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php