1
datamile
help with module search and includes ?
  • 2004/1/30 9:09

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


hi,

I'm trying to develop a module search process for an existing module , but are having problems with paths etc.

when xoops/search.php calls my function , the php path is still xoopshome so thing like include(../../mainfile.php) fail.

While I can get around the direct calls , some of my calls then include files of there own etc.

Is there a recommend way to change the cwd to the that of module while in the call that the includes all work ?

i.e. myseach.php
function xoops_search()
{
include('../../mainfile.php');
include ('lib/func.php');
}

func.php
{
include ('lib/morefunc.php');
}

Also where are all the global XOOPS variables such as XOOPSDB etc. I presume I get get the module path from this , if I knew which module was running etc

Thx

Ian


Login

Who's Online

167 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

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

Latest GitHub Commits