barnie Posted November 16, 2008 Share Posted November 16, 2008 I am using a collection of scripts which use templates. These templates are made accessible through one file.php containing one line: $GLOBALS['dossier'] = "templates"; This file is in the root directory of the site. I want to use these templates for others sites. How should I modify the $GLOBALS to be effective on other sites? If this is not possible, what other means are there to use my tamplates everywhere? Link to comment https://forums.phpfreaks.com/topic/132938-my-globals-arent-that-global/ Share on other sites More sharing options...
Mchl Posted November 16, 2008 Share Posted November 16, 2008 You have to include("file.php") in those others scripts. Link to comment https://forums.phpfreaks.com/topic/132938-my-globals-arent-that-global/#findComment-691306 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.