Global or include?
| From: | Paul Halliday | Date: | Wed, 05 Jan 2011 22:40:56 +0000 |
| Subject: | Global or include? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-310513@lists.php.net to get a copy of this message | ||
Say you have 10 or so scripts and a single config file. If you have
main.php, functions1.php, functions2.php, functions3.php..
Does is hurt to do an include of the config file in each separate
script, even if you only need a few things from it, or should you
just specify what you want with a 'global' within each
script/function?
Thanks!
--
Paul Halliday
http://www.pintumbler.org