1
kaotik
retrieving XOOPS_DB_NAME without loading mainfile.
  • 2005/6/30 17:50

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I need to retrieve several constants from mainfile, but without doing a include or require of mainfile since that causes several functions of my specific module to go "caput". Is this possible? Is there some other solution to loading some of mainfile's constants?

Thanks

2
Mithrandir
Re: retrieving XOOPS_DB_NAME without loading mainfile.

$xoopsOption['nocommon'] = 1;
include 
"path/to/mainfile.php";

Will only include mainfile.php but not include/common.php where all the rest of pre-page-processing is done.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
kaotik
Re: retrieving XOOPS_DB_NAME without loading mainfile.
  • 2005/6/30 18:03

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Thanks Mithrandir!!
That solved the problem!

Login

Who's Online

333 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 333


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits