Ok, i where able to make it work, however, the problem is pretty strange.
Whenever I try to use the script from withing a PHP function it fails....
example.
Code:
test();
function test() {
chdir('../forum');
require_once('./vBExternal.php');
output_News(3,51);
output_NewestThreads(5,'');
chdir('../pages');
}
That does not work and it returns
Fatal error: Call to a member function query() on a non-object in F:\Webz Inicom\Web iniCom\forum\vBExternal.php on line 392
if i run it from a non function, ie on a root of a file it just work fine
anyone can explain why or if there is any workaround?