I have a php files dependencies in this order: .../php/index php .../php/globals/db_connection.php .../php/globas/global_functions.php
in db_connection.php I declared a variable with the connection to a postgreSQL database. on index.php, everything is fine <? require_once("globals/db_connection.php"); require_once("globals/global_functions.php"); ?> I can use the database connection but having in global_functions.php: <? require_once("db_connection.php"); ?> when I make a call from index.php to a function defined on global_functions.php, the called function can not use the database connection referred before. Thanks in advance Enediel Happy who can penetrate the secret causes of the things ĦUse Linux! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php