I would like to know which is the best practice (and why) when declaring variables or constants that contain a path or URI: with trailing slash or not?
With:
define(MODULE_URL,'http://mysite.com/modules/');
$var = MODULE_URL . 'module-dir/file.ext';
Without:
define(MODULE_URL,'http://mysite.com/modules');
$var = MODULE_URL . '/module-dir/file.ext';