Global or include?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux