我有三个文件:
index.php
/include/conf.php
/include/database.php
conf.php包含连接到数据库的变量。
database.php包含conf.php并具有将整个表作为数组返回的功能。index.php包括/include/database.php和调用get_table('users');
XDebug说我$db_host, $db_user, $db_pass and $db_name没有定义。
如何通过外部文件传递数据库相关变量?