Hello I have one config.php where I have defined some variables. [code]<?php // Database informarion $db_info = array("db_host" => "localhost", "db_user" => "root", "db_pwd" => "", "db_port" => 123, "db" => "preapp"); ?> [/code] Now in another PHP page: [code] <?php require('config.php'); print_r($db_info); // 1 /* This is a complete PHP page all database related stuff goes here */ function ExecuteAndGetResult ( $query ) { print_r($db_info); // 2 } ?>[/code] In the above case, 1st print_r() works but the 2nd one dosnt. I believe its some GLOBAL variable defining error. What am I doing wrong? Ritesh