[TYPO3-dev] include_once(PATH_site .'typo3conf/localconf.php');

Tapio Markula tapio.markula at atwebteam.com
Wed Nov 29 09:23:59 CET 2006


Hi

I needed special SQL- commands
I tried to get database name, username and password
using
include_once(PATH_site .'typo3conf/localconf.php');
and
file_get_contents(PATH_site .'typo3conf/localconf.php');

but
$typo_db_username
...

didn't worked from included file, why?
I must made for a customer project-related hack
and put those directly,
which is really bad (and I can newer publish
public this kind of hack).
Is there some api method to get
those issues in order to make own SQL-statements
for core files using XCLASSing..




More information about the TYPO3-dev mailing list