I'm interested to know which one is better--define or global variables
especially for config stuffs.
For example, osCommerce use something like: define('db_user ', 'xx');
whereas phpMyAdmin uses like $config['server']['host'] =
'localhost';
and other few software use $db_pass = 'foo';
I'm much interested to know which one is good. Isn't hash array
like $config['server']['host'] overkill? TIA
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
especially for config stuffs.
For example, osCommerce use something like: define('db_user ', 'xx');
whereas phpMyAdmin uses like $config['server']['host'] =
'localhost';
and other few software use $db_pass = 'foo';
I'm much interested to know which one is good. Isn't hash array
like $config['server']['host'] overkill? TIA
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Comment