PHP variable from external php file index.php /include/conf.php /include/database.php define("db_host", "localhost"); global $db_host, $db_user, $db_pass, $db_name; Learn More : Share this Share on FacebookTweet on TwitterPlus on Google+