Quote:
Originally Posted by Deceptor
Perhaps try:
Code:
chdir('/path/to/forum');
require_once('./global.php');
chdir('/path/to/wordpress');
|
don't want wo work
the strange => the wordpress vbbridge plugin is working correctly.
that means, the plugin requires the global.php on the same way like me... AND it's working in the plugin

. but not on the frontend, really really strange.
PHP Code:
<?php
$vwd = '/path/forum';
$cwd = getcwd(); /* cwd == "/path" */
chdir($vwd);
if (!file_exists($vwd . '/global.php')) { echo "cannot include $vwd2/global.php. You should check your path!";
exit; }
require_once($vwd . '/global.php');
$useriddd = $vbulletin->userinfo[userid];
chdir($cwd);
echo '"'.$useriddd.'"';
?>