PDA

View Full Version : Include PHP from global_start plugin won't work


fumbler
03-17-2006, 09:39 PM
having a hard time with this and have searched threads and not able to get this to work.

Hook Location : global_start has this plugin:

ob_start();
//global $main_xb_nav;
include('getenv('DOCUMENT_ROOT').'/includes/filename.php');
$outputme = ob_get_contents();
ob_end_clean();


template:

$outputme

Is there something that needs to be turned on in order for this to work? I have even tried setting it as a global var as suggested in one of the threads to no avail.

any suggestions?

filburt1
03-19-2006, 03:30 AM
include('getenv('DOCUMENT_ROOT').'/includes/filename.php');

makes more sense as

include(getenv('DOCUMENT_ROOT') . '/includes/filename.php');

fumbler
03-20-2006, 03:07 AM
i've tried that and it didn't work (the unclosed ' didn't make sense but tried it anyways since it was posted on the forums here as something that worked for someone else).

Anyone else? I've been fighting with this for days trying to get it to work and very disappointed I can't include some of my PHP code into this :/

fumbler
03-21-2006, 11:30 PM
Anyone?

I can get some PHP code to work now but for whatever reason, I can't get an include to work.