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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -