Hey everyone, I need some help on a short bit of code I want to put in a plugin. The code looks like this:
PHP Code:
putenv("PHP_ENC_USERNAME=$bbuserinfo[username]"); # where $username is your PHP user variable.
putenv("PHP_ENC_ISADMIN=1"); # where $X is a 0 or a 1.
And I am trying to put it togather with some code I already have in the plugin like this:
PHP Code:
putenv("PHP_ENC_USERNAME=$bbuserinfo[username]"); # where $username is your PHP user variable.
putenv("PHP_ENC_ISADMIN=1"); # where $X is a 0 or a 1.
ob_start();
include("http://mysite.com?" . $_SERVER['QUERY_STRING']);
$file = ob_get_contents();
ob_end_clean();
Am I doing it right? I'm not sure because I never get the result I'm supposed to. Perhaps it is not rendering the putenv()?
Any help would be greatly appreciated! Thanks!
- Pianoman993