Hi gang:

More of a question of method rather than of "right" or "wrong" -- of the two methods mentioned here, which way would be "better" and why?

1. Setting $GLOBALS one time as shown here.

At 12:23 AM -0400 6/19/08, Robert Cummings wrote:
And the variables are defined in config.php

--------------
config.php
--------------
<?php

//Mysql vars
$GLOBALS['mysql_host'] = "localhost";
$GLOBALS['mysql_user'] = "[EMAIL PROTECTED]";
$GLOBALS['mysql_pass'] = "";

?>


2. Or, setting variables as shown below and including them when needed?

--------------
config.php
--------------
<?php

//Mysql vars
$localhost = 'localhost';
$mysql_user = '[EMAIL PROTECTED]';
$mysql_pass = '';

?>

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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

Reply via email to