I prefer initialising all my scripts through a bootstrap script that in turn reads a configuration file. I tend to re-use a common set of configuration parameters.
PHP:
-
-
/**
-
* E-mail send/receive related
-
* /
-
define('EMAIL_CONTACT_ADDRESS', 'webmaster@mysite.com');
-
define('EMAIL_SERVER_FROM_IDENTITY', 'MySite Webmaster');
-
define('EMAIL_WEB_ADMINISTRATOR', 'admin@mysite.com');
-
/**
-
* Time-related
-
*/
-
-
//EOT - "end of time"
-
//Sometimes (but rarely) I need to construct queries that search until the "end of time"
-
-
-
/**
-
* Paths
-
*/
-
-
-
-
-
/**
-
* Page renderer-related directive
-
* These parameters are compatible with the Smarty templating engine
-
*/
