Set a Top Level or Super Duper Global Variable in PHP? -
is possible make top level variable in php? defining in .htaccess
or httpd.conf
? included in each .php
file?
i love define basepaths , other variables there if possible. making init.php
, including 'em on top if each file.
as working multi entry point application, if want avoid including configuration file, can use php's autoprepend functionality. automatically include file without need <?php require('init.php'); ?>
in each of entry points.
and can find good advice here.
Comments
Post a Comment